logrotate: enable selinux support
[buildroot-gz.git] / package / babeld / S50babeld
blobc75b4c378a4c46d73d66234673a9d7351610de00
1 #!/bin/sh
3 # Starts babeld.
6 # Allow a few customizations from a config file
7 test -r /etc/default/babeld && . /etc/default/babeld
9 start() {
10 printf "Starting babeld: "
11 start-stop-daemon -S -q -p /run/babeld.pid \
12 --exec /usr/sbin/babeld -- $DAEMON_ARGS
13 [ $? = 0 ] && echo "OK" || echo "FAIL"
15 stop() {
16 printf "Stopping babeld: "
17 start-stop-daemon -K -q -p /run/babeld.pid
18 [ $? = 0 ] && echo "OK" || echo "FAIL"
20 restart() {
21 stop
22 start
25 case "$1" in
26 start)
27 start
29 stop)
30 stop
32 restart|reload)
33 restart
36 echo "Usage: $0 {start|stop|restart}"
37 exit 1
38 esac
40 exit $?