Use systemd as init with /sbin/init
This commit is contained in:
@@ -36,15 +36,7 @@ start_gui() {
|
||||
pids+=($!)
|
||||
}
|
||||
|
||||
start_vpnagent() {
|
||||
# Load TUN module if needed
|
||||
/opt/cisco/secureclient/bin/load_tun.sh 2>/dev/null || true
|
||||
# Clean up stale IPC socket
|
||||
rm -f /root/.cisco/hostscan/.libcsd.ipc 2>/dev/null || true
|
||||
# Start Cisco VPN agent daemon
|
||||
/opt/cisco/secureclient/bin/vpnagentd &
|
||||
pids+=($!)
|
||||
}
|
||||
# vpnagentd is now started by systemd (cisco-vpnagentd.service)
|
||||
|
||||
setup_tun() {
|
||||
mkdir -p /dev/net
|
||||
@@ -73,7 +65,6 @@ setup_tun
|
||||
setup_nat
|
||||
start_dbus
|
||||
start_gui
|
||||
start_vpnagent
|
||||
start_terminal
|
||||
|
||||
echo "All services started. noVNC available on port $NOVNC_PORT"
|
||||
|
||||
Reference in New Issue
Block a user