[pptp-server] pptpd.init
Waleed Alrawi
htcengrs at pacbell.net
Sat Jul 1 14:50:43 CDT 2000
hi all
is there a problem with the following pptpd.init file please let me know.
Thanks
#!/bin/sh
#
# Startup script for pptpd
#
# chkconfig: 345 85 15
# description: PPTP server
# processname: pptpd
# config: /etc/pptpd.conf
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Starting pptpd: "
if [ -f /var/lock/subsys/pptpd ] ; then
echo
exit 1
fi
# daemon /usr/sbin/pptpd
/usr/sbin/pptpd -d
echo
touch /var/lock/subsys/pptpd
;;
stop)
echo -n "Shutting down pptpd: "
killproc pptpd
echo
rm -f /var/lock/subsys/pptpd
;;
status)
status pptpd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
More information about the pptp-server
mailing list