Hello,
Having trouble getting poptop to start as service on boot
I used the init script on Toms site below
This is a snip from chkconfig --list
shorewall 0:off 1:off 2:on 3:on 4:on 5:on 6:off
openvpn 0:off 1:off 2:off 3:on 4:on 5:on 6:off
pptpd 0:off 1:off 2:off 3:off 4:off 5:on 6:off
I use webmin "bootup and shutdown" to start and stop services at
boottime
When I try to bullet to start pptpd at boot then click save in webmin, it
does not save.
I also tryed:
[root@ns2 root]# chkconfig service_pptpd on
error reading information on service service_pptpd: No such file or
directory
[root@ns2 root]#
What am I doing wrong is it because the script sets to run level 5 only?
Thanks,
Mike
ps spoiled with with webmin
#!/bin/sh
#
# /etc/rc.d/init.d/pptpd
#
# chkconfig: 5 12 85
# description: control pptp server
#
case "$1" in
start)
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ppp_async
modprobe ppp_generic
modprobe ppp_mppe
modprobe slhc
if /usr/local/sbin/pptpd; then
touch /var/lock/subsys/pptpd
fi
;;
stop)
killall pptpd
rm -f /var/lock/subsys/pptpd
;;
restart)
killall pptpd
if /usr/local/sbin/pptpd; then
touch /var/lock/subsys/pptpd
fi
;;
status)
ifconfig
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
;;
esac