2012-10-01 08:23:36 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Start netatalk
|
2012-04-26 09:41:47 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
start() {
|
2012-10-01 08:23:36 +02:00
|
|
|
echo "Starting Netatalk"
|
|
|
|
start-stop-daemon -S -q -p /var/run/netatalk.pid --exec /usr/sbin/netatalk
|
2012-04-26 09:41:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stop(){
|
2012-10-01 08:23:36 +02:00
|
|
|
echo "Stopping Netatalk"
|
|
|
|
start-stop-daemon -K -q -p /var/run/netatalk.pid
|
2012-04-26 09:41:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
2012-10-01 08:23:36 +02:00
|
|
|
;;
|
2012-04-26 09:41:47 +02:00
|
|
|
stop)
|
|
|
|
stop
|
2012-10-01 08:23:36 +02:00
|
|
|
;;
|
2012-04-26 09:41:47 +02:00
|
|
|
restart)
|
|
|
|
start
|
|
|
|
stop
|
2012-10-01 08:23:36 +02:00
|
|
|
;;
|
|
|
|
*)
|
2012-04-26 09:41:47 +02:00
|
|
|
echo $"Usage: $0 {start|stop|restart}"
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|
|
|
|
|