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.
glasnost/redhat/glasnost-redhat-init.d

42 lines
545 B
Bash
Executable File

#!/bin/bash
#
# Startup script for the Glasnost Server
#
# chkconfig: - 84 16
# description: Glasnost.
# config: /etc/glasnost/config
# Source function library.
. /etc/rc.d/init.d/functions
prog=Glasnost
glasnost=/usr/sbin/`basename $0`
start() {
echo -n $"Starting $prog: "
$glasnost start
}
stop() {
echo -n $"Stopping $prog: "
$glasnost stop
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
echo not implemented
;;
restart)
stop
start
;;
*)
echo $"Usage: $prog {start|stop|restart|status}"
exit 1
esac