source: bootscripts-standard/clfs/init.d/sysklogd@ 9c1acc7

Last change on this file since 9c1acc7 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.

  • Property mode set to 100644
File size: 980 bytes
Line 
1#!/bin/bash
2########################################################################
3# Begin $rc_base/init.d/sysklogd
4#
5# Description : Sysklogd loader
6#
7# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
8#
9# Version : 00.00
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
17
18case "${1}" in
19 start)
20 boot_mesg "Starting system log daemon..."
21 loadproc syslogd -m 0
22
23 boot_mesg "Starting kernel log daemon..."
24 loadproc klogd
25 ;;
26
27 stop)
28 boot_mesg "Stopping kernel log daemon..."
29 killproc klogd
30
31 boot_mesg "Stopping system log daemon..."
32 killproc syslogd
33 ;;
34
35 reload)
36 boot_mesg "Reloading system log daemon config file..."
37 reloadproc syslogd
38 ;;
39
40 restart)
41 ${0} stop
42 sleep 1
43 ${0} start
44 ;;
45
46 status)
47 statusproc syslogd
48 statusproc klogd
49 ;;
50
51 *)
52 echo "Usage: ${0} {start|stop|reload|restart|status}"
53 exit 1
54 ;;
55esac
56
57# End $rc_base/init.d/sysklogd
Note: See TracBrowser for help on using the repository browser.