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
|
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 |
|
---|
18 | case "${1}" in
|
---|
19 | start)
|
---|
20 | boot_mesg "Starting system log daemon..."
|
---|
21 | loadproc rsyslogd -c3
|
---|
22 | ;;
|
---|
23 |
|
---|
24 |
|
---|
25 | stop)
|
---|
26 | boot_mesg "Stopping system log daemon..."
|
---|
27 | killproc rsyslogd
|
---|
28 | ;;
|
---|
29 |
|
---|
30 | reload)
|
---|
31 | boot_mesg "Reloading system log daemon config file..."
|
---|
32 | reloadproc rsyslogd
|
---|
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.