SF.net SVN: gar:[23349] csw/mgar/pkg/nsd/trunk/files/cswnsd
idogan23 at users.sourceforge.net
idogan23 at users.sourceforge.net
Sun Apr 6 11:47:15 CEST 2014
Revision: 23349
http://sourceforge.net/p/gar/code/23349
Author: idogan23
Date: 2014-04-06 09:47:14 +0000 (Sun, 06 Apr 2014)
Log Message:
-----------
nsd: Init script adapted to nsd 4.x, as nsdc is no longer available
Modified Paths:
--------------
csw/mgar/pkg/nsd/trunk/files/cswnsd
Modified: csw/mgar/pkg/nsd/trunk/files/cswnsd
===================================================================
--- csw/mgar/pkg/nsd/trunk/files/cswnsd 2014-04-06 09:24:55 UTC (rev 23348)
+++ csw/mgar/pkg/nsd/trunk/files/cswnsd 2014-04-06 09:47:14 UTC (rev 23349)
@@ -3,14 +3,11 @@
case "$1" in
start)
echo "Starting nsd."
- if [ ! -f /var/opt/csw/nsd/nsd.db ]; then
- /opt/csw/sbin/nsdc rebuild >/dev/null 2>/dev/null
- fi
- /opt/csw/sbin/nsdc start
+ /opt/csw/sbin/nsd-control start
;;
stop)
echo "Stopping nsd."
- /opt/csw/sbin/nsdc stop
+ /usr/bin/kill -TERM `cat /var/run/nsd.pid`
;;
restart)
$0 stop
@@ -19,7 +16,7 @@
;;
refresh)
echo "Refreshing nsd."
- /opt/csw/sbin/nsdc reload
+ /usr/bin/kill -HUP `cat /var/run/nsd.pid`
;;
*)
echo "Usage: $0 { start | stop | restart | refresh }"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list