Patch to give player server ability to daemonize

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Patch to give player server ability to daemonize

t551 (Bugzilla)
I've attached of a local modification to player that might be useful to others.  
I'm going to be running multirobot experiments using the python fabric library
to control experiment trials, and I needed the ability for player to detach
itself from its shell.

This patch gives the player server the ability to become a standard unix
daemon if it's passed the -s command line argument.

I've done some rudimentary testing to ensure that clients can still connect to
the server in daemon mode, etc.

Is there anything about this code that needs to be changed to be included in
the player mainline?

The patch itself was generated using the git format-patch command.  If another
format is preferred, just let me know.

Taahir Ahmed
Distributed AI Robotics Laboratory
Texas A&M University
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Playerstage-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-developers

0001-Added-a-rudimentary-daemon-ability-to-the-main-playe.patch (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Patch to give player server ability to daemonize

Rich Mattes-2
On 07/11/2012 09:56 PM, Taahir Ahmed wrote:

> I've attached of a local modification to player that might be useful to others.
> I'm going to be running multirobot experiments using the python fabric library
> to control experiment trials, and I needed the ability for player to detach
> itself from its shell.
>
> This patch gives the player server the ability to become a standard unix
> daemon if it's passed the -s command line argument.
>
> I've done some rudimentary testing to ensure that clients can still connect to
> the server in daemon mode, etc.
>
> Is there anything about this code that needs to be changed to be included in
> the player mainline?
>
> The patch itself was generated using the git format-patch command.  If another
> format is preferred, just let me know.
>
> Taahir Ahmed
> Distributed AI Robotics Laboratory
> Texas A&M University
>

Hi Taahir,

Thanks for taking the time to send this patch along!  The patch format
is fine; the only thing we ask is that it applies cleanly to svn head.  
As far as changes, it looks pretty good.  I'll get to work testing it
and rolling it into the Player source.

Thanks,

Rich


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Playerstage-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-developers