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

gLSB: Init scripts



Hi,

I have some questions regarding the init scripts:

a) "Init script Functions"

"killproc basename [signal]" in which way do I need to pass the "signal"?
-TERM or TERM or SIGTERM or ...?
If I recall correctly SuSE allows "-TERM" and Debian "TERM"
("lsb" package)

> pidofproc basename
> This function returns one or more pid(s) for a
> particular daemon. If an entry is found in /var/run/basename.pid, then
> that value is returned. Compliant implementations of the LSB may attempt
> other mechanisms for determining the pid(s), although this is not
> required (and not recommended, since a user can trick startup scripts by creating
> processes that appear to be system programs in the process list thus
> creating a potential security exposure). Hence, LSB-complaint
> applications who wish to use the pidofproc function in their init
> scripts must store the pid in /var/run/basename.pid.
In order to achieve "implementations may attemp other mechanisms for
determining the pid(s)" it would be nice if instead of
"pidofproc basename" this would be possible "pidofproc pathname"

Tobias


-- 
To UNSUBSCRIBE, email to lsb-spec-request@lists.linuxbase.org
with subject of "unsubscribe". Trouble? Email listmaster@lists.linuxbase.org



Reply to: