39 lines
750 B
Bash
39 lines
750 B
Bash
#! /bin/bash
|
|
# Begin $rc_base/init.d/msysklogd - Mini Sysklogd loader
|
|
#
|
|
# msysklogd: This starts and stops the Mini Sysklogd
|
|
# chkconfig: 2345 14 93
|
|
# description: Mini Sysklogd loader
|
|
#
|
|
# Copyright (c) by Davide Madrisan <davide.madrisan@qilinux.it>
|
|
|
|
. /etc/init.d/functions
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting msysklogd: "
|
|
sysklogd -c 1 -k /dev/null -m0 >/dev/null 2>&1 &
|
|
evaluate_retval
|
|
echo
|
|
;;
|
|
stop)
|
|
echo -n "Stopping msysklogd: "
|
|
killproc sysklogd
|
|
evaluate_retval
|
|
echo
|
|
;;
|
|
status)
|
|
statusproc sysklogd
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start ;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|status|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
# End $rc_base/init.d/msysklogd
|
|
|