mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
264b034196
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
36 lines
528 B
Bash
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
|