/etc/init.d in the default $PATH ?

Traian Gheorghe ONCIU Fedora at DalilaSoft.Ro
Sun Jan 28 18:23:11 UTC 2007


> So, what it the rationale for /etc/init.d not being in the default
> $PATH, for root at least?
>

Very very bad idea. Imagine only this: look at /sbin/iptables and 
/etc/rc.d/init.d/iptables (or /etc/init.d/iptables, since /etc/init.d is a 
symlink to /etc/rc.d/init.d). You want to run iptables binary (elf) and you 
launch iptables service, that's call /sbin/iptables to initialize IP tables 
with default values (using /etc/sysconfig/iptables for all default values you 
need).

I have also this question in the past, but I've found myself that this idea is 
wrong, so I create symlinks to all the service I need naming with 'rc-' before 
their names (/etc/rc.d/init.d/network become, as symlink, rc-network).
__________________________________________________________________________________________________________________
ing. Traian Gheorghe ONCIU
S.C. Dalila SoftWare SRL (Fedora at DalilaSoft.Ro) 


begin 666 S.C. Dalila SoftWare SRL (DalilaSoft).vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E-23" H1&%L:6QA4V]F="D[
M4RY#+CM$86QI;&$@4V]F=%=A<F4-"D9..E,N0RX at 1&%L:6QA(%-O9G1787)E
M(%-23" H1&%L:6QA4V]F="D-"D]21SI3+D,N($1A;&EL82!3;V9T5V%R92!3
M4DP-"E1%3#M73U)+.U9/24-%.BLT(# W,C, at -3,U(#,Q-0T*5$5,.U=/4DL[
M1D%8.BLT(# S-#$@-#(P(#$T- at T*0412.U=/4DLZ.RLT(# W,C, at -3,U(#,Q
M-3M"9"X at 5&]M:7,@;G(N(#,T,BP at 8FPN($,S+"!S8RX at 0BP@970N(%8L(&%P
M+B V,#M#;VYS=&%N_F$[4F]MXFYI83LY,# T.3<[4F]MXFYI80T*3$%"14P[
M5T]22SM%3D-/1$E.1SU154]4140M4%))3E1!0DQ%.BLT(# W,C, at -3,U(#,Q
M-3TP1#TP04)D+B!4;VUI<R!N<BX@,S0R+"!B;"X at 0S,L('-C+B!"+"!E="X@
M5BP at 87 N(#8P/3!$/3!!0V\]#0IN<W1A;CU&16$L(%)O;3U%,FYI82 Y,# T
M.3<],$0],$%2;VT]13)N:6$-"E523#M73U)+.G=W=RY$86QI;&%3;V9T+G)O
M#0I"1$%9.C(P,# P.#$V#0I%34%)3#M04D5&.TE.5$523D54.D1A;&EL85-O
M9G1 1&%L:6QA4V]F="Y2;PT*4D56.C(P,#<P,3(X5#$X,C,Q,5H-"D5.1#I6
&0T%21 T*
`
end





More information about the fedora-devel-list mailing list