summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-02-27 15:13:31 +0000
committertron <tron@pkgsrc.org>2002-02-27 15:13:31 +0000
commit6536ea2bf80c09940096a5a8217a4ee5c434bebe (patch)
treee11899486ed4b38a08410b083d3718feddf53fe0 /net
parent1689499d4aeccf2c61c9d7c22784ce0786e36e23 (diff)
downloadpkgsrc-6536ea2bf80c09940096a5a8217a4ee5c434bebe.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.sh3
-rw-r--r--net/ucd-snmp/files/snmptrapd.sh3
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
;;
*)