Last change
on this file since fc18225 was fc18225, checked in by Jim Gifford <clfs@…>, 16 years ago |
Added: rsyslog
|
-
Property mode
set to
100644
|
File size:
840 bytes
|
Rev | Line | |
---|
[7df280d] | 1 | #!/bin/bash
|
---|
[7125722] | 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 |
|
---|
| 18 | case "${1}" in
|
---|
| 19 | start)
|
---|
| 20 | boot_mesg "Starting system log daemon..."
|
---|
[fc18225] | 21 | loadproc rsyslogd -c3
|
---|
[7125722] | 22 | ;;
|
---|
| 23 |
|
---|
| 24 |
|
---|
[fc18225] | 25 | stop)
|
---|
[7125722] | 26 | boot_mesg "Stopping system log daemon..."
|
---|
[fc18225] | 27 | killproc rsyslogd
|
---|
[7125722] | 28 | ;;
|
---|
| 29 |
|
---|
| 30 | reload)
|
---|
| 31 | boot_mesg "Reloading system log daemon config file..."
|
---|
[fc18225] | 32 | reloadproc rsyslogd
|
---|
[7125722] | 33 | ;;
|
---|
| 34 |
|
---|
| 35 | restart)
|
---|
| 36 | ${0} stop
|
---|
| 37 | sleep 1
|
---|
| 38 | ${0} start
|
---|
| 39 | ;;
|
---|
| 40 |
|
---|
| 41 | status)
|
---|
| 42 | statusproc syslogd
|
---|
| 43 | ;;
|
---|
| 44 |
|
---|
| 45 | *)
|
---|
| 46 | echo "Usage: ${0} {start|stop|reload|restart|status}"
|
---|
| 47 | exit 1
|
---|
| 48 | ;;
|
---|
| 49 | esac
|
---|
| 50 |
|
---|
| 51 | # End $rc_base/init.d/sysklogd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.