nixpkgs-suyu/pkgs/servers/syslog-script/syslog
Armijn Hemel 6562861ba4 fix some brainfarts
svn path=/nixpkgs/trunk/; revision=5021
2006-03-10 13:32:54 +00:00

59 lines
734 B
Bash
Executable file

#!@bash@/bin/bash
#
# Dummy init file for syslog, hacketyhack!
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# source function library
source @initscripts@/functions
# pull in sysconfig settings
#[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
RETVAL=0
prog=@nicename@
startService()
{
# just do networking
echo -n "Starting $prog:"
@syslog@/usr/sbin/syslogd
@syslog@/usr/sbin/klogd
}
stopService()
{
echo -n "Stopping $prog:"
}
reloadService()
{
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
reload)
reload
;;
status)
status
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
RETVAL=1
esac
exit $RETVAL