Files
bpfire/src/initscripts/init.d/miau
Arne Fitzenreiter 0375518803 cpufreq initskript removed hardcoded modulelist, fix output if no cpu is supported
Fix rights of some initskripts at buildsystem
2009-04-03 16:23:28 +02:00

48 lines
904 B
Bash

#!/bin/sh
########################################################################
# Begin $rc_base/init.d/miau
#
# Description : This is a script that starts miau as deamon
#
# Authors : Schantl Stefan (Stevee@ipfire.org)
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting miau - another IRC-bouncer/proxy..."
chown -R nobody.nobody /opt/miau
loadproc sudo -u nobody /opt/miau/bin/miau -d /opt/miau/config > /dev/null
evaluate_retval
;;
stop)
boot_mesg "Stopping miau - another IRC-bouncer/proxy..."
killproc /opt/miau/bin/miau
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /opt/miau/bin/miau
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/miau