service vs init.d

Elan Ruusamäe glen at delfi.ee
Fri May 6 21:59:38 CEST 2005


hi

is there reason why rpm scripts (re)start services via full path?
there's /sbin/service, if's from rc-scripts what the packages should be 
depending anyway

i'm writing this, because i've suffered not than once problem that apache is 
started with inherited TMP or TMPDIR which is not writable to webserver user.
this is easy reproducable if you use sudo.

and /sbin/service does unset ALL enviroinment, except some neccessary ones:
# grep env /sbin/service
env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" start

other option would be to include this same thing into daemon() function in 
rc-scripts.


-- 
glen




More information about the pld-devel-en mailing list