Linux Client Boot Configuration
Posted: Sun Nov 01, 2015 2:39 am
Has anyone been able to get the vpnclient to autostart on Ubuntu 14.04 and up? Chkconfig is no longer used and is broken and apparently Ubuntu uses update-rc.d to enable servies at boot time. I am using a modified script from the vpnserver config as shown below:
------------------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Client
DAEMON=/usr/local/vpnclient/vpnclient
LOCK=/var/lock/subsys/vpnclient
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
------------------------------------------------------------------------------------------------------------------------------------------
However, I receive the following error messages when trying to use "update-rc.d vpnclient defaults":
insserv: warning: script 'vpnclient' missing LSB tags and overrides
------------------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Client
DAEMON=/usr/local/vpnclient/vpnclient
LOCK=/var/lock/subsys/vpnclient
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
------------------------------------------------------------------------------------------------------------------------------------------
However, I receive the following error messages when trying to use "update-rc.d vpnclient defaults":
insserv: warning: script 'vpnclient' missing LSB tags and overrides