[osiris-devel] Bug: osirisd 3.0.4 does't daemonize correctly...
Yazz D. Atlas
yazz at osdn.com
Mon Mar 15 18:07:32 EST 2004
Since playing around with Osiris lately I found an item I think is a
bug. Ssh into a system and stop osirisd by hand and them restart it
using the command bellow. Now try to exit that ssh session, it just hangs.
( example of what I'm talking about )
# /usr/local/sbin/osirisd -r /usr/local/osiris/
# exit
logout
(just hangs here)
You might want to look at the following URL for some code to solve this.
(I'm not a programmer so forgive me if I can't submit my own patch)
http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16
(cut and pasted from above URL)
A daemon process is usually defined as a background process that does
not belong to a terminal session. Many system services are performed by
daemons; network services, printing etc.
Simply invoking a program in the background isn't really adequate for
these long-running programs; that does not correctly detach the process
from the terminal session that started it. Also, the conventional way of
starting daemons is simply to issue the command manually or from an rc
script; the daemon is expected to put itself into the background.
--
Yazz D. Atlas <yazz at osdn.com> Voice: 408-802-9608 (cell)
Senior Systems Engineer / Senior BOFH Fax: 510-226-8814
[ O | S | D | N ] Open Source Development Network / VA Software
http://www.osdn.com 47071 Bayside Parkway Fremont, CA 94538
AIM:"Entropy Works 42" IRC:"Aaton irc.slashnet.org" ICQ:"11445680"
gpg --keyserver wwwkeys.pgp.net --recv-key 0x0C57DDA0
GPG: 644C E9FF D0AF 3C5E 5C73 5E05 00EF C7EC 0C57 DDA0
More information about the osiris-devel
mailing list