source: bootscripts-standard/bootscripts/cblfs/init.d/syslog-ng@ 56f753d

Last change on this file since 56f753d was 2167cfe, checked in by William Harrington <kb0iic@…>, 10 years ago

bootscripts are the scripts used for the sysvinit book.

  • Property mode set to 100644
File size: 735 bytes
Line 
1#/bin/bash
2########################################################################
3# Begin $rc_base/init.d/syslog-ng
4#
5# Description : Syslog-ng Bootscript
6#
7# Authors : Joe Ciccone <jciccone@gmail.com>
8#
9# Version : 00.01
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
17
18case "${1}" in
19 start)
20 boot_mesg "Starting Syslog-ng..."
21 loadproc /usr/sbin/syslog-ng
22 ;;
23
24 stop)
25 boot_mesg "Stopping Syslog-ng..."
26 killproc /usr/sbin/syslog-ng
27 ;;
28
29 restart)
30 ${0} stop
31 sleep 1
32 ${0} start
33 ;;
34
35 status)
36 statusproc syslog-ng
37 ;;
38
39 *)
40 echo "Usage: ${0} {start|stop|restart|status}"
41 exit 1
42 ;;
43esac
44
45# End $rc_base/init.d/syslog-ng
Note: See TracBrowser for help on using the repository browser.