milis/ayarlar/servisler/mbd/init.d/soprano

68 lines
1.6 KiB
Plaintext
Raw Normal View History

2017-03-28 04:34:52 +02:00
#!/bin/sh
########################################################################
# Begin soprano
#
# Description :
#
# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
#
# Version : LFS 7.2
#
########################################################################
### BEGIN INIT INFO
# Provides: sopranod
# Required-Start: $syslog $local_fs $network
# Should-Start: $remote_fs
# Required-Stop: $network
# Should-Stop: $remote_fs
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Controls the soprano (QRDF) daemon
# Description: Controls the soprano (QRDF) daemon
# X-LFS-Provided-By: BLFS / LFS 7.0
### END INIT INFO
. /lib/lsb/init-functions
[ -r /etc/sysconfig/soprano ] && . /etc/sysconfig/soprano
case "$1" in
start)
log_info_msg "Starting Soprano Server..."
HOME=$SOPRANO_STORAGE /usr/bin/sopranod \
--storagedir $SOPRANO_STORAGE \
--backend $SOPRANO_BACKEND \
$SOPRANO_OPTIONS &
evaluate_retval
;;
stop)
log_info_msg "Stopping Soprano Server..."
killproc /usr/bin/sopranod
evaluate_retval
;;
reload)
log_info_msg "Reloading Soprano Server..."
killproc /usr/bin/sopranod -HUP
evaluate_retval
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc /usr/bin/sopranod
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac
# End /etc/init.d/soprano