slackbuilds_ponce/network/GlobalProtect-openconnect/rc.gpservice
Marek Wodzinski 264b034196
network/GlobalProtect-openconnect: Added (VPN Service).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2024-01-27 10:06:16 +07:00

36 lines
528 B
Bash

#!/bin/bash
#
# Start/stop gpservice
# Written by Marek Wodzinski <majek@w7i.pl>
# Start gpservice
gpservice_start() {
if [ -x /usr/bin/gpservice ]; then
echo "Starting gpservice."
/usr/bin/gpservice &
fi
}
# Stop gpservice
gpservice_stop() {
echo "Stopping gpservice."
killall gpservice
}
case "$1" in
start)
gpservice_start
;;
stop)
gpservice_stop
;;
restart)
gpservice_stop
sleep 1
gpservice_start
;;
*)
echo "usage @0 start|stop|restart"
exit 1
;;
esac