[SOLVED] Linux Deploy SoftEther Init Script Issue
Posted: Tue Aug 01, 2017 3:12 pm
I installed SoftEther server on a android phone running CentOS 7 on Linux Deploy and Busy Box. I'm connecting to the cellular ip through the vpn tunnel to use the cellular public ip.
Android 4.4.2
Architecture: armv71
Kernel: 3.4.0+
Memory: 70/415 MB
Swap: 52/110 MB
SELinux: yes
Loop Device: yes
Support binfmt_misc: no
Supported FS: ext2 ext3 extd fuseblk vfat
Installed System: CentOS 7
I used the start up script example:
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
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
I set Linux to start up on a 30 second delay when the phone is powered on. This works fine. But SoftEther will not start in service mode. I have to manually start SoftEther through the cmd line through ssh.
I ran the vpncmd vpn tools check and all checks pass.
When I installed CentOS 7, development tools, gcc, and libpcap on linux deploy it was missing packages. I had to install wget, make, and openssl-dev manually.
I believe it is missing somthing preventing SoftEther for starting on start up.
Android 4.4.2
Architecture: armv71
Kernel: 3.4.0+
Memory: 70/415 MB
Swap: 52/110 MB
SELinux: yes
Loop Device: yes
Support binfmt_misc: no
Supported FS: ext2 ext3 extd fuseblk vfat
Installed System: CentOS 7
I used the start up script example:
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
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
I set Linux to start up on a 30 second delay when the phone is powered on. This works fine. But SoftEther will not start in service mode. I have to manually start SoftEther through the cmd line through ssh.
I ran the vpncmd vpn tools check and all checks pass.
When I installed CentOS 7, development tools, gcc, and libpcap on linux deploy it was missing packages. I had to install wget, make, and openssl-dev manually.
I believe it is missing somthing preventing SoftEther for starting on start up.