fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] How to run Start Background Process


From: Jens Rantil
Subject: Re: [Fab-user] How to run Start Background Process
Date: Wed, 30 Jan 2013 00:00:41 +0100

Hi Dhanasekaran,

Another tool that might solve your backgrounding issues would be to have a look at Rundeck. Since it's a standalone process that can execute long running executions, it might be an option.

Good luck,
Jens

On Tuesday, January 29, 2013, Lex van Roon wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Dhanasekaran,

First of all, the purpose of a list is to address everyone on that
list (for instance, in case of a question). Directly addressing people
while also including a list will be frowned upon by some people.

Second, as the FAQ(1) already explains, fabric will spawn a shell to
run your command, and it's this shell that is preventing you from
backgrounding the application. Looking at the possible solutions for
this, you might want to try one of the following:

* Run the program under nohup and redirect stdin, stdout and stderr to
/dev/null
* Use tmux, screen or dtach to fully detach the process from the
running shell

Depending on what /home/sysops/sarexecute.sh exactly does, it might be
worthwile to turn it into a 'proper' unix service, allowing you to run
something like '/etc/init.d/sarexecute start'.

Please try out these options and let us know the results.

gr, Lex

1)
http://docs.fabfile.org/en/1.5/faq.html#why-can-t-i-run-programs-in-the-background-with-it-makes-fabric-hang

On 29/01/13 16:57, Dhanasekaran Anbalagan wrote:
> Hi Jeff,
>
> I am beginner for fabric. I want to start one background process on
> remote host. For example take one sheel-script.sh&
>
> I am not understanding the FAQ, please give any example it's very
> useful for us.
>
> def script_background(): run("bash /home/sysops/sarexecute.sh &")
>
> This is my script Please guide me
>
> -Dhanasekaran.
>
> Did I learn something today? If not, I wasted it.
>
>
>
>
> _______________________________________________ Fab-user mailing
> list address@hidden
> https://lists.nongnu.org/mailman/listinfo/fab-user


- --
LRO-RIPE | 398E38C3 | 748D 6359 389B 4E5A 4A44 82F5 BEC5 07FD 398E 38C3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJRB/QaAAoJEL7FB/05jjjDJGQH/iFN71wKlKCI8vwxQvPawjay
vOVLwJ3fP/rr8e4KxtCdjw8R173u4S9UKtrhdHoZ1vY+uTnhCFICSjmBJhDh6EHg
hP9gqgR3Lw6xUOBemkcH0tXjzWg/NSXQHXZRR2YE+1qfYR/0c3KA5Qs2/QdUtice
vdIyk3WQDyzjGAkEG1HQVL0pg3XnHa3G0hlMcXq11fpzYQL92yUmlK4KgNYccCCK
F8nDVwU+EDK/bNECKgK/1MoktuUR4NEM8URmFuc4SG+geTcoZFXJFDhPj4DukRCf
JxxUa/NxOFLy3YaGNj5DJV3GYGl4KgieuxJCto85oS4Y4/ROw6xOF36B3dvP8vc=
=XEwG
-----END PGP SIGNATURE-----

_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user


--
Want to know how full my inbox is? Or how to get in touch with me faster? Or tell me your e-mail is not that important? Then check this out: http://courteous.ly/4WtfZY

reply via email to

[Prev in Thread] Current Thread [Next in Thread]