Python as RedHat/SysV service

Stuart D. Gathman stuart at bmsi.com
Tue Dec 18 16:03:39 EST 2001


I have a system service written in python.  On RedHat systems, this
service is conveniently installed and started by placing a script in
/etc/rc.d/init.d to start,stop,reload, etc the service.  The standard
methods for checking whether a service is running or sending it a signal
rely on the process name: e.g. 'inetd'.  In this case, the process name is
always 'python2'.

Is there a way to change the process name of a running python program?  Or
is it better to craft a new version of 'pidof' that works for python
processes?  Has anyone dealt with this before?



-- 
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - Mozart background
song for the Microsoft "Where do you want to go from here?" commercial.



More information about the Python-list mailing list