10.0
10.0-rc1
10.1
10.1-rc1
11.0
11.0-rc1
11.0-rc2
11.0-rc3
11.1
11.1-rc1
11.2
11.2-rc1
11.3
11.3-rc1
12.0
12.0-rc1
12.1
12.1-rc1
12.2
12.2-rc1
6.7
6.8
7.0
7.1
7.2
7.3
7.4
7.5
7.5-systemd
7.6
7.6-systemd
7.7
7.7-systemd
7.8
7.8-systemd
7.9
7.9-systemd
8.0
8.1
8.2
8.3
8.4
9.0
9.1
arm
bdubbs/gcc13
ml-11.0
multilib
renodr/libudev-from-systemd
s6-init
trunk
xry111/arm64
xry111/arm64-12.0
xry111/clfs-ng
xry111/lfs-next
xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
xry111/loongarch-12.2
xry111/mips64el
xry111/pip3
xry111/rust-wip-20221008
xry111/update-glibc
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Begin /etc/init.d/sysklogd
|
---|
3 |
|
---|
4 | ### BEGIN INIT INFO
|
---|
5 | # Provides: $syslog
|
---|
6 | # Required-Start: localnet
|
---|
7 | # Should-Start:
|
---|
8 | # Required-Stop: $local_fs sendsignals
|
---|
9 | # Should-Stop:
|
---|
10 | # Default-Start: 2 3 4 5
|
---|
11 | # Default-Stop: 0 1 6
|
---|
12 | # Short-Description: Starts kernel and system log daemons.
|
---|
13 | # Description: Starts kernel and system log daemons.
|
---|
14 | # /etc/fstab.
|
---|
15 | # X-LFS-Provided-By: LFS
|
---|
16 | ### END INIT INFO
|
---|
17 |
|
---|
18 | . /lib/lsb/init-functions
|
---|
19 |
|
---|
20 | case "${1}" in
|
---|
21 | start)
|
---|
22 | MESSAGE="system log daemon..."
|
---|
23 | start_daemon /sbin/syslogd -m 0
|
---|
24 | evaluate_retval start
|
---|
25 |
|
---|
26 | MESSAGE="kernel log daemon..."
|
---|
27 | start_daemon /sbin/klogd
|
---|
28 | evaluate_retval start
|
---|
29 | ;;
|
---|
30 |
|
---|
31 | stop)
|
---|
32 | MESSAGE="kernel log daemon..."
|
---|
33 | killproc /sbin/klogd
|
---|
34 | evaluate_retval stop
|
---|
35 |
|
---|
36 | MESSAGE="system log daemon..."
|
---|
37 | killproc /sbin/syslogd
|
---|
38 | evaluate_retval stop
|
---|
39 | ;;
|
---|
40 |
|
---|
41 | force-reload)
|
---|
42 | MESSAGE="system log daemon config file..."
|
---|
43 | killproc -HUP `/sbin/syslogd`
|
---|
44 | evaluate_retval reload
|
---|
45 | ;;
|
---|
46 |
|
---|
47 | restart)
|
---|
48 | MESSAGE="system and kernel log deamons..."
|
---|
49 | failed=0
|
---|
50 | killproc /sbin/klogd || failed=1
|
---|
51 | killproc /sbin/syslogd || failed=1
|
---|
52 | start_daemon /sbin/syslogd -m 0 || failed=1
|
---|
53 | start_daemon /sbin/klogd || failed=1
|
---|
54 | (exit ${failed})
|
---|
55 | evaluate_retval restart
|
---|
56 | ;;
|
---|
57 |
|
---|
58 | status)
|
---|
59 | statusproc /sbin/syslogd
|
---|
60 | statusproc /sbin/klogd
|
---|
61 | ;;
|
---|
62 |
|
---|
63 | *)
|
---|
64 | echo "Usage: ${0} {start|stop|force-reload|restart|status}"
|
---|
65 | exit 1
|
---|
66 | ;;
|
---|
67 | esac
|
---|
68 |
|
---|
69 | # End /etc/init.d/sysklogd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.