3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/syslog-script/syslog
Armijn Hemel 9a198b5192 more script work. Now what we need is:
* generic functions to register with the system, good for "weak dependencies"

svn path=/nixpkgs/trunk/; revision=5009
2006-03-08 19:38:12 +00:00

60 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
#. @initscripts@/etc/rc.d/init.d/functions
# pull in sysconfig settings
#[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
RETVAL=0
prog=@nicename@
start()
{
# just do networking
echo -n $"Starting $prog:"
@syslog@/usr/sbin/syslogd
@syslog@/usr/sbin/klogd
}
stop()
{
echo -n $"Stopping $prog:"
}
reload()
{
start
stop
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
reload)
reload
;;
status)
echo "all OK"
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
RETVAL=1
esac
exit $RETVAL