2006-03-08 19:38:12 +00: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 13:32:54 +00:00
|
|
|
source @initscripts@/functions
|
2006-03-08 19:38:12 +00:00
|
|
|
|
|
|
|
# pull in sysconfig settings
|
|
|
|
#[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
|
|
|
|
|
|
|
|
RETVAL=0
|
|
|
|
prog=@nicename@
|
|
|
|
|
2006-03-10 13:32:54 +00:00
|
|
|
startService()
|
2006-03-08 19:38:12 +00:00
|
|
|
{
|
|
|
|
# just do networking
|
2006-03-10 13:32:54 +00:00
|
|
|
echo -n "Starting $prog:"
|
2006-03-08 19:38:12 +00:00
|
|
|
@syslog@/usr/sbin/syslogd
|
|
|
|
@syslog@/usr/sbin/klogd
|
|
|
|
}
|
|
|
|
|
2006-03-10 13:32:54 +00:00
|
|
|
stopService()
|
2006-03-08 19:38:12 +00:00
|
|
|
{
|
2006-03-10 13:32:54 +00:00
|
|
|
echo -n "Stopping $prog:"
|
2006-03-10 15:05:22 +00:00
|
|
|
kill `cat /var/run/syslogd.pid`
|
|
|
|
kill `cat /var/run/klogd.pid`
|
2006-03-08 19:38:12 +00:00
|
|
|
}
|
|
|
|
|
2006-03-10 13:32:54 +00:00
|
|
|
reloadService()
|
2006-03-08 19:38:12 +00:00
|
|
|
{
|
|
|
|
stop
|
2006-03-10 13:32:54 +00:00
|
|
|
start
|
2006-03-08 19:38:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
stop
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
reload)
|
|
|
|
reload
|
|
|
|
;;
|
|
|
|
status)
|
2006-03-10 13:32:54 +00:00
|
|
|
status
|
2006-03-08 19:38:12 +00:00
|
|
|
;;
|
2006-03-15 15:51:32 +00:00
|
|
|
name)
|
|
|
|
name
|
|
|
|
;;
|
2006-03-08 19:38:12 +00:00
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop|restart|reload|status}"
|
|
|
|
RETVAL=1
|
|
|
|
esac
|
|
|
|
exit $RETVAL
|