????4????ο?????????PacketiX VPN????
??????????????????vpnserver?????/usr/local/vpnserver/??????????VPN??????????????????????????/usr/local/vpnserver/????????????????????????????????????????????п??????????????????
????????????text editor??cat ?????????д??????????????vpnserver??????
#!/bin/sh
# chkconfig: 2345 99 01
# description: PacketiX VPN Server 3.0
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
????????vpnserver????????????/etc/init.d??
?????????????????????????????????
????[root@machine root]#sbin/chkconfig –add vpnserver
????[root@machine root]#Sudo sysv –rc –conf vpnserver on
?????????VPN?????????????????apt-get install sysv-rc-conf??apt-get install chkconfig
?????????????VPN???????????????????????е????????????????????????????????windows?????????????????????????????????????ν?????
?????????????????????????????????????????VPN?????????????????????????
????????VPN?????????????????÷????????????÷???????