mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-15 16:23:25 +08:00
1b22957a2c
Signed-off-by: Tilman Keskinöz <arved@arved.at> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
27 lines
479 B
Bash
27 lines
479 B
Bash
#!/bin/sh
|
|
#
|
|
# Start logging
|
|
#
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting logging: "
|
|
start-stop-daemon -S -q -p /var/run/syslogd.pid --exec /sbin/syslogd -- -m 0
|
|
start-stop-daemon -S -q -p /var/run/klogd.pid --exec /sbin/klogd
|
|
echo "OK"
|
|
;;
|
|
stop)
|
|
echo -n "Stopping logging: "
|
|
start-stop-daemon -K -q -p /var/run/syslogd.pid
|
|
start-stop-daemon -K -q -p /var/run/klogd.pid
|
|
echo "OK"
|
|
;;
|
|
restart|reload)
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|