source:
bootscripts-embedded/clfs/rc.d/init.d/syslog@
8054aa2
Last change on this file since 8054aa2 was f25bf53, checked in by , 16 years ago | |
---|---|
|
|
File size: 479 bytes |
Rev | Line | |
---|---|---|
[97ad60e] | 1 | #!/bin/ash |
2 | ||
3 | # Syslog Startup Script | |
4 | # | |
5 | ||
6 | . /etc/rc.d/init.d/functions | |
7 | ||
8 | SYSLOG_ROTATE_SIZE=80kb | |
9 | ||
10 | case "$1" in | |
11 | start) | |
[f25bf53] | 12 | echo -n "Starting syslogd: " |
13 | syslogd -m 0 -s $SYSLOG_ROTATE_SIZE -L | |
14 | check_status | |
15 | echo -n "Starting klogd: " | |
16 | klogd | |
17 | check_status | |
18 | ;; | |
[97ad60e] | 19 | stop) |
[f25bf53] | 20 | echo -n "Stopping klogd: " |
21 | killall klogd | |
22 | check_status | |
23 | echo -n "Stopping syslogd: " | |
24 | killall syslogd | |
25 | check_status | |
26 | ;; | |
[97ad60e] | 27 | restart) |
[f25bf53] | 28 | $0 stop |
29 | $0 start | |
30 | ;; | |
[97ad60e] | 31 | *) |
[f25bf53] | 32 | echo "Usage: $0 {start|stop|restart}" |
33 | exit 1 | |
[97ad60e] | 34 | esac |
Note:
See TracBrowser
for help on using the repository browser.