[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Problem with start-stop-daemon
From: |
Fernando Takai |
Subject: |
Re: [Fab-user] Problem with start-stop-daemon |
Date: |
Mon, 25 Jan 2010 09:25:48 -0200 |
If i try on a normal shell, it returns immediately.
Going to try adding the --background flag today.
On Jan 24, 2010, at 6:40 PM, Christian Vest Hansen wrote:
> 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.
--
Fernando Takai
http://twitter.com/fernando_takai