clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since d66bf46 was d66bf46, checked in by Jim Gifford <clfs@…>, 18 years ago |
Update bootscripts to follow our standards
|
-
Property mode
set to
100644
|
File size:
980 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
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 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 1
|
---|
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 | ;;
|
---|
55 | esac
|
---|
56 |
|
---|
57 | # End $rc_base/init.d/sysklogd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.