--- /dev/null
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: ais
+# Required-Start: apache2 postgresql
+# Required-Stop: apache2 postgresql
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: AIS server
+# Description: Start/stop the AIS aquisition daemon and the job runner
+### END INIT INFO
+#
+# XXX Server to installed with:
+# ln -s THISFILE /etc/init.d/ais
+# update-rc.d ais defaults
+
+set -e
+
+. /lib/lsb/init-functions
+
+case $1 in
+ start)
+ sudo -u nirgal python -m ais.inputs.run --background
+ sudo -u nirgal python -m ais.jobrunner --debug
+ ;;
+ stop)
+ log_success_msg "Not implemented"
+ exit 1
+ ;;
+ *)
+ log_success_msg "Usage: ais.sh {start|stop}"
+ exit 1
+ ;;
+esac