adding --pid switch to qmtest?
Mike Carifio
carifio at usys.com
Wed Aug 21 19:55:55 UTC 2002
When I run qmtest gui <etc>, I'd like it to print out
the pid into a file, say /var/run/qmtest.pid. What's the
"right" way of doing that? I'm thinking I want to modify
the command line processing to take an optional --pid <path>
switch and then modify qm/qm/web.py's WebServer class to write
out os.getpid() to a file.
If I have the pid in a file, then I write a bash script to be
placed in /etc/rc.d/init.d/qmtest (say) that can stop/restart/status
the running server.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mike Carifio.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20020821/0c00e566/attachment.vcf>
More information about the qmtest
mailing list