[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Problem with start-stop-daemon
From: |
Christian Vest Hansen |
Subject: |
Re: [Fab-user] Problem with start-stop-daemon |
Date: |
Sun, 24 Jan 2010 21:40:15 +0100 |
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
<address@hidden> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.