This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2003-04-13 15:59:49 +02:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
DESC="glasnost"
|
|
|
|
NAME="glasnost"
|
|
|
|
|
|
|
|
#set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2003-09-28 18:21:09 +02:00
|
|
|
glasnost-ctl start
|
2003-04-13 15:59:49 +02:00
|
|
|
;;
|
|
|
|
stop)
|
2003-09-28 18:21:09 +02:00
|
|
|
glasnost-ctl stop
|
2003-04-13 15:59:49 +02:00
|
|
|
;;
|
|
|
|
restart|force-reload)
|
|
|
|
#
|
|
|
|
# If the "reload" option is implemented, move the "force-reload"
|
|
|
|
# option to the "reload" entry above. If not, "force-reload" is
|
|
|
|
# just the same as "restart".
|
|
|
|
#
|
|
|
|
echo -n "Restarting $DESC (this takes time): "
|
2003-09-28 18:21:09 +02:00
|
|
|
glasnost-ctl stop > /dev/null
|
|
|
|
sleep 10
|
|
|
|
glasnost-ctl start > /dev/null
|
2003-04-13 15:59:49 +02:00
|
|
|
echo " done."
|
|
|
|
;;
|
|
|
|
reload)
|
|
|
|
echo "not implemented"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
N=/etc/init.d/$NAME
|
|
|
|
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|
2003-08-29 18:16:58 +02:00
|
|
|
|