You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description "Upstart script for https://github.com/matthiasn/Birdwatch, modified from http://www.agileand.me/blog/posts/play-2-2-x-upstart-init-script"
2
+
3
+
env USER=bw
4
+
env GROUP=www
5
+
env APP_HOME=/home/bw/apps/birdwatch-0.3.0
6
+
env APP_NAME=birdwatch
7
+
env PORT=9000
8
+
env BIND_ADDRESS=0.0.0.0
9
+
env EXTRA=""
10
+
11
+
start on (filesystem and net-device-up IFACE=lo)
12
+
stop on runlevel [!2345]
13
+
14
+
respawn
15
+
respawn limit 30 10
16
+
umask 022
17
+
expect daemon
18
+
19
+
pre-start script
20
+
#If improper shutdown and the PID file is left on disk delete it so we can start again
21
+
22
+
if [ -f $APP_HOME/RUNNING_PID ] && ! ps -p `cat $APP_HOME/RUNNING_PID` > /dev/null ; then
0 commit comments