diff options
author | tron <tron> | 2002-02-27 15:13:31 +0000 |
---|---|---|
committer | tron <tron> | 2002-02-27 15:13:31 +0000 |
commit | 7016a8454ae3a8293d75447c8bcb2dec5697ca6e (patch) | |
tree | e11899486ed4b38a08410b083d3718feddf53fe0 /net/ucd-snmp | |
parent | c7cc600fbc569457d6731c3ebec9d2842860df4f (diff) | |
download | pkgsrc-7016a8454ae3a8293d75447c8bcb2dec5697ca6e.tar.gz |
Put a delay in the "restart" code so that the daemon has time to shutdown
properly.
Diffstat (limited to 'net/ucd-snmp')
-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 ;; *) |