Re: LSB-ish init script, RFC

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

 



Matthew Farrellee (mfarrellee+fedora@xxxxxxxxxx) said: 
> First, it wasn't sufficient for my service because anyone can run a copy of 
> my service. They just have to have their own config file. Think of it like 
> having both a system httpd, listening on port 80, and a user httpd, 
> listening on port 1134. Both process names can easily be "httpd". This is a 
> problem because /etc/init.d/functions' status() uses pidof, which can find 
> a user's process and confuse it with a system process. This means running 
> "service blah start" can silently fail because the init script thinks the 
> service is already running, when only the user's copy of the service is 
> running. To get around this I implemented my own rh_status, calling it 
> pid_status, that uses a pidfile to determine if the service is running.

This seems to be a rather unusual case, though, especially since it implies
you'd need customization just to specify an alternate config file.

Bill

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux