bugSystem V style init programs - Bugs: bug #40029, please support site-local init...


bug #40029: please support site-local init scripts under /usr/local/etc

Submitted by:  Ximin Luo <infinity0>
Submitted on:  Sat 14 Sep 2013 12:40:02 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  Jesse <newguy>
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 25 Dec 2017 11:32:07 PM UTC, comment #1:

I may be mistaken, but I do not think there is anything in init itself which hard-wires the system to use /etc/init.d at the exclusion of /usr/local/etc/init.d.

Looking at the /usr/sbin/service script which ships with Debian (and I believe older versions of Red Hat Enterprise Linux) it looks like the "service" script is the component which hard-codes /etc/init.d, ignoring start-up scripts in /usr/local/etc/init.d.

Someone please correct me if I'm wrong, but I think the "service" command is handled by another package. On Debian I think it's init-system-helpers, not sure what the equivalent Fedora/Red Hat package is.

Jesse <newguy>
Project MemberIn charge of this item.
Sat 14 Sep 2013 12:40:02 PM UTC, original submission:

At the moment, recommended practise for site-local initscripts is to install them under /etc/init.d like everything else. This is inconsistent with the separation in FHS between the base system in / and /usr vs site-local packages in /usr/local.

`man hier` says /usr/local/etc is for "Configuration files associated with locally installed programs". This includes site-local initscripts, and contrasts with "config files for system packages". (All config files are "site-local" so that is not relevant here; it is the "site-local" property of the underlying package that is relevant.)

FreeBSD supports /usr/local/etc/rc.d to be consistent with their separation, see [1]. Granted, FreeBSD separates things differently (base system in /usr vs packages/ports/site-local in /usr/local) but the point remains that their separation is consistent and the latter's initscripts are in /usr/local/etc

Additionally, since ${prefix} is by default /usr/local in a build system, a package which tries to install an initscript will by default (i.e. when configured manually for site-local use) install it to /usr/local/etc/init.d but this won't be picked up by sysvinit.

[1] http://www.freebsd.org/doc/en/articles/linux-users/startup.html

Ximin Luo <infinity0>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by newguy (Posted a comment)
  • -email is unavailable- added by infinity0 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-17 newguy Open/ClosedOpen => Closed
    2018-04-17 newguy StatusNone => Invalid
        Assigned toNone => newguy

    Back to the top

    Powered by Savane 3.4