diff options
author | tron <tron> | 2002-02-27 15:13:31 +0000 |
---|---|---|
committer | tron <tron> | 2002-02-27 15:13:31 +0000 |
commit | dde9552dfaa25afe7d502678b4a254514e0bae5f (patch) | |
tree | e11899486ed4b38a08410b083d3718feddf53fe0 /net | |
parent | 78c692638227b7422157c33c630c7b632af094ad (diff) | |
download | pkgsrc-dde9552dfaa25afe7d502678b4a254514e0bae5f.tar.gz |
Put a delay in the "restart" code so that the daemon has time to shutdown
properly.
Diffstat (limited to 'net')
-rw-r--r-- | net/ucd-snmp/files/snmpd.sh | 3 | ||||
-rw-r--r-- | net/ucd-snmp/files/snmptrapd.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/net/ucd-snmp/files/snmpd.sh b/net/ucd-snmp/files/snmpd.sh index ff83cd72561..e1f5e82d561 100644 --- a/net/ucd-snmp/files/snmpd.sh +++ b/net/ucd-snmp/files/snmpd.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: snmpd.sh,v 1.5 2002/02/27 12:52:58 tron Exp $ +# $NetBSD: snmpd.sh,v 1.6 2002/02/27 15:13:31 tron Exp $ # PID file: PF=/var/run/snmpd.pid @@ -28,6 +28,7 @@ stop) ;; restart) sh $0 stop + sleep 5 sh $0 start ;; *) diff --git a/net/ucd-snmp/files/snmptrapd.sh b/net/ucd-snmp/files/snmptrapd.sh index 3ab359cdf20..48e850195ae 100644 --- a/net/ucd-snmp/files/snmptrapd.sh +++ b/net/ucd-snmp/files/snmptrapd.sh @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: snmptrapd.sh,v 1.3 2002/02/27 12:52:58 tron Exp $ +# $NetBSD: snmptrapd.sh,v 1.4 2002/02/27 15:13:31 tron Exp $ # PID file: PF=/var/run/snmptrapd.pid @@ -24,6 +24,7 @@ stop) ;; restart) sh $0 stop + sleep 5 sh $0 start ;; *) |