--- /dev/null
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: owl
+# Required-Start: $mysql
+# Required-Stop: $mysql
+# Default-Start: 2 3 4 5
+# Default-Stop:
+# Short-Description: Start OWL data graber daemon
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+. /lib/lsb/init-functions
+
+DAEMON=/usr/local/owl/cm160server.py
+PIDFILE=/usr/local/owl/cm160server.pid
+OPTIONS="-s 1"
+
+test -x $DAEMON || exit 5
+
+# RUNASUSER=ntp
+
+case $1 in
+ start)
+ log_daemon_msg "Starting OWL data graber daemon" "cm160server.py"
+ start-stop-daemon --start --quiet --oknodo --background --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
+ status=$?
+ log_end_msg $status
+ ;;
+ stop)
+ log_daemon_msg "Stopping OWL data graber daemon" "cm160server.py"
+ start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
+ log_end_msg $?
+ rm -f $PIDFILE
+ ;;
+ restart|force-reload)
+ $0 stop && sleep 2 && $0 start
+ ;;
+ try-restart)
+ if $0 status >/dev/null; then
+ $0 restart
+ else
+ exit 0
+ fi
+ ;;
+ status)
+ status_of_proc $DAEMON "OWL data graber daemon"
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|try-restart|status}"
+ exit 2
+ ;;
+esac