|
From: Heiko Z. <smi...@us...> - 2005-03-24 00:38:14
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8138/scripts/scripts Modified Files: Tag: rel-1-2-patches xntpd Log Message: chroot jail support for xntpd (Zsiros Zsolt / Heiko) increased version number Index: xntpd =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/xntpd,v retrieving revision 1.4 retrieving revision 1.4.4.1 diff -u -d -r1.4 -r1.4.4.1 --- xntpd 8 Sep 2003 20:19:34 -0000 1.4 +++ xntpd 24 Mar 2005 00:37:15 -0000 1.4.4.1 @@ -24,6 +24,7 @@ CONFIGNAME=NTPD DAEMON=/usr/bin/ntpd PARAMETER= +PACKAGE_NAME=NTPD # source function library source /etc/init.d/functions @@ -51,10 +52,16 @@ loadproc /usr/bin/ntpdate -s -b -p 8 -u \ `sed -e 's/#.*//' /etc/ntp/step-tickers` fi + if [ -f /etc/sysconfig/jail/$PACKAGE_NAME ] && [ "$JAIL_ENABLE" == yes ]; then + /etc/init.d/jail start $PACKAGE_NAME + fi echo -n "Starting $NAME: " loadproc $DAEMON $PARAMETER ;; stop) + if [ -f /etc/sysconfig/jail/$PACKAGE_NAME ] && [ "$JAIL_ENABLE" == yes ]; then + /etc/init.d/jail stop $PACKAGE_NAME + fi echo -n "Shutting down $NAME: " killproc $DAEMON ;; @@ -67,4 +74,3 @@ echo "Usage: $0 {start|stop|restart}" exit 1 esac - |