Permalink
Browse files

updated the upstart script for runproc convention

  • Loading branch information...
1 parent b81fce5 commit 220a24a86cd954a5cb454b52a92ad5a467889811 @progrium committed Jul 23, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 contrib/event.d/webdns-gateway
View
7 contrib/event.d/webdns-gateway
@@ -10,6 +10,9 @@ stop on runlevel 4
stop on runlevel 5
stop on runlevel 6
-chdir /webdns/git
-exec /usr/local/bin/twistd --pidfile=../pid/webdns-gateway.pid --logfile=../log/webdns-gateway.log -ny gateway
+chdir /runproc/webdns
+script
+ . ./environ
+ exec twistd --pidfile=$PIDFILE -ny gateway >> $LOGFILE
+end script
respawn

0 comments on commit 220a24a

Please sign in to comment.