coffin

secure lan file storage on a device
git clone git://parazyd.org/coffin.git
Log | Files | Refs | Submodules | README | LICENSE

coffin-initd (570B)


      1 #!/bin/sh
      2 ### BEGIN INIT INFO
      3 # Provides:          coffin
      4 # Required-Start:    $all
      5 # Short-Description: Starts the coffin daemon
      6 ### END INIT INFO
      7 
      8 DAEMON=
      9 NAME=coffin
     10 DESC="coffin daemon"
     11 
     12 test -x $DAEMON || exit 0
     13 
     14 case "$1" in
     15 	start)
     16 		echo "Starting $DESC..."
     17 		start-stop-daemon \
     18 			--start \
     19 			--background \
     20 			--make-pidfile \
     21 			--pidfile /var/run/coffin.pid \
     22 			--exec $DAEMON
     23 		;;
     24 	stop)
     25 		echo "Stopping $DESC..."
     26 		start-stop-daemon \
     27 			--stop \
     28 			--pidfile /var/run/coffin.pid
     29 		;;
     30 	*)
     31 		echo "Usage: $0 {start|stop}" >&2
     32 		exit 1
     33 		;;
     34 esac
     35 
     36 exit 0