mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
9159ca026d
conditions and dependencies don't work yet, but it's a start svn path=/nixpkgs/trunk/; revision=5023
62 lines
798 B
Bash
Executable File
62 lines
798 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:"
|
|
kill `cat /var/run/syslogd.pid`
|
|
kill `cat /var/run/klogd.pid`
|
|
}
|
|
|
|
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
|