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

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

 



On Sun, Jan 28, 2007 at 04:43:03PM -0800, Florin Andrei wrote:
> >Ambiguity is bad.
> Correct.
> OTOH, if all files in /etc/init.d would be named init-<service-name> or 
> something like that, then the ambiguity would disappear and the 
> /etc/init.d could be added to the default $PATH.

No one seems to have mentioned this, so I will. It's important to use
/sbin/service rather than running /etc/init.d scripts directly for other
reasons than its convenience. Namely, it properly sanitizes your environment
so a program started that way behaves just as if really started by init at
system boot time.

-- 
Matthew Miller           mattdm@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>

-- 
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