I would guess that your command isn't "daemonizing". If you SSH to the server and run the command `sudo start-stop-daemon --start --quiet --pidfile > /var/run/myapp.pid --exec /usr/local/sbin/daemon.py` does it daemonize and give you a prompt back immediately? Otherwise try adding a --background argument to the start-stop-daemon command.
On Sun, Jan 24, 2010 at 8:24 PM, Fernando Takai <fernando.ta...@gmail.com> wrote: > Hi everyone, > > I'm using fabric to deploy my app on a debian server. > To do it, i need to: > > 1 - stop the app > 2 - upload the tar.bz2 > 3 - extract the new tar file > 4 - start the app. > > Every step is working, except the last one. When i try to start the > app via /etc/init.d/myapp start, fabric just stops. > I tracked down the problem to the start-stop-daemon tool. > > If i try this task: > > def start(): > sudo("start-stop-daemon --start --quiet --pidfile > /var/run/myapp.pid --exec /usr/local/sbin/daemon.py") > > It just hangs. > > Anyone knows a workaround? > > -- > Fernando "Takai" > http://flickr.com/photos/supeertakai > http://twitter.com/fernando_takai > > Get Ubiquity: https://ubiquity.mozilla.com > > > _______________________________________________ > Fab-user mailing list > Fab-user@nongnu.org > http://lists.nongnu.org/mailman/listinfo/fab-user > -- Venlig hilsen / Kind regards, Christian Vest Hansen. _______________________________________________ Fab-user mailing list Fab-user@nongnu.org http://lists.nongnu.org/mailman/listinfo/fab-user