2006-03-08 20:38:12 +01:00
|
|
|
#!@bash@/bin/bash
|
|
|
|
#
|
|
|
|
# Dummy init file for syslog, hacketyhack!
|
|
|
|
#
|
|
|
|
# chkconfig: 2345 55 25
|
|
|
|
# description: OpenSSH server daemon
|
|
|
|
#
|
|
|
|
# processname: sshd
|
|
|
|
|
|
|
|
# source function library
|
2006-03-10 14:32:54 +01:00
|
|
|
source @initscripts@/functions
|
2006-03-08 20:38:12 +01:00
|
|
|
|
|
|
|
# pull in sysconfig settings
|
|
|
|
#[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
|
|
|
|
|
|
|
|
RETVAL=0
|
|
|
|
prog=@nicename@
|
|
|
|
|
2006-03-10 14:32:54 +01:00
|
|
|
startService()
|
2006-03-08 20:38:12 +01:00
|
|
|
{
|
|
|
|
# just do networking
|
2006-03-10 14:32:54 +01:00
|
|
|
echo -n "Starting $prog:"
|
2006-03-08 20:38:12 +01:00
|
|
|
@syslog@/usr/sbin/syslogd
|
|
|
|
@syslog@/usr/sbin/klogd
|
|
|
|
}
|
|
|
|
|
2006-03-10 14:32:54 +01:00
|
|
|
stopService()
|
2006-03-08 20:38:12 +01:00
|
|
|
{
|
2006-03-10 14:32:54 +01:00
|
|
|
echo -n "Stopping $prog:"
|
2006-03-10 16:05:22 +01:00
|
|
|
kill `cat /var/run/syslogd.pid`
|
|
|
|
kill `cat /var/run/klogd.pid`
|
2006-03-08 20:38:12 +01:00
|
|
|
}
|
|
|
|
|
2006-03-10 14:32:54 +01:00
|
|
|
reloadService()
|
2006-03-08 20:38:12 +01:00
|
|
|
{
|
|
|
|
stop
|
2006-03-10 14:32:54 +01:00
|
|
|
start
|
2006-03-08 20:38:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
stop
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
reload)
|
|
|
|
reload
|
|
|
|
;;
|
|
|
|
status)
|
2006-03-10 14:32:54 +01:00
|
|
|
status
|
2006-03-08 20:38:12 +01:00
|
|
|
;;
|
2006-03-15 16:51:32 +01:00
|
|
|
name)
|
|
|
|
name
|
|
|
|
;;
|
2006-03-08 20:38:12 +01:00
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop|restart|reload|status}"
|
|
|
|
RETVAL=1
|
|
|
|
esac
|
|
|
|
exit $RETVAL
|