Skip to content

Commit

Permalink
some fixes to upstart script
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoffman committed May 21, 2013
1 parent 22a22e2 commit b26c19d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions debian/upstart
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
start on runlevel [2345]
stop on runlevel [06]

env DISPLAY=:0

script
[ -r /etc/default/splash2 ] && . /etc/default/splash2
logdir=/var/log/splash2
exec start-stop-daemon --start --chuid proxy:proxy \
python -m splash2.server -f /var/log/splash2/splash2.log
chown proxy:proxy $logdir
exec start-stop-daemon --start \
--chuid proxy:proxy \
--pidfile /var/run/splash2.pid \
--exec /usr/bin/python \
-- -m splash2.server -f $logdir/splash2.log >$logdir/splash2.out 2>$logdir/splash2.err
end script

0 comments on commit b26c19d

Please sign in to comment.