48 lines
989 B
Plaintext
48 lines
989 B
Plaintext
|
#! /bin/sh
|
||
|
### BEGIN INIT INFO
|
||
|
# Provides: avahi-bookmarks
|
||
|
# Required-Start: avahi-dnsconfd
|
||
|
# Default-Start: 3 5
|
||
|
# Default-Stop:
|
||
|
# Description: Avahi ZeroConf Bookmarks server
|
||
|
### END INIT INFO
|
||
|
|
||
|
AVAHI_BIN=/usr/bin/avahi-bookmarks
|
||
|
test -x $AVAHI_BIN || exit 5
|
||
|
|
||
|
. /etc/rc.status
|
||
|
rc_reset
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Starting Avahi Bookmarks server"
|
||
|
/sbin/startproc -q -u avahi $AVAHI_BIN
|
||
|
rc_status -v
|
||
|
;;
|
||
|
stop)
|
||
|
echo -n "Shutting down Avahi Bookmarks server"
|
||
|
/sbin/killproc $AVAHI_BIN
|
||
|
rc_status -v
|
||
|
;;
|
||
|
restart)
|
||
|
$0 stop
|
||
|
$0 start
|
||
|
rc_status
|
||
|
;;
|
||
|
force-reload|reload)
|
||
|
echo -n "Reloading Avahi Bookmarks server"
|
||
|
$AVAHI_BIN -r
|
||
|
rc_status -v
|
||
|
;;
|
||
|
status)
|
||
|
echo -n "Checking for Avahi Bookmarks server: "
|
||
|
$AVAHI_BIN -c
|
||
|
rc_status -v
|
||
|
;;
|
||
|
*)
|
||
|
echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|