change local to run programs
This changes the local service so that it will run programs located in @sysconfdir@/local.d instead of the local_start and local_stop functions from @sysconfdir@/conf.d/local. The advantage for the user is that these programs are not part of the openrc package, so the user does not have to worry about them being overwritten when openrc is upgraded. X-Gentoo-Bug: 351465 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
DIR= ${CONFDIR}
|
||||
CONF= bootmisc fsck hostname local localmount network staticroute urandom
|
||||
CONF= bootmisc fsck hostname localmount network staticroute urandom
|
||||
|
||||
TARGETS+= network staticroute
|
||||
CLEANFILES+= network staticroute
|
||||
|
18
conf.d/local
18
conf.d/local
@@ -1,18 +0,0 @@
|
||||
# Here is where you can put anything you need to start
|
||||
# that there is not an init script for.
|
||||
|
||||
local_start() {
|
||||
# This is a good place to load any misc programs
|
||||
# on startup (use &>/dev/null to hide output)
|
||||
|
||||
# We should always return 0
|
||||
return 0
|
||||
}
|
||||
|
||||
local_stop() {
|
||||
# This is a good place to unload any misc.
|
||||
# programs you started above.
|
||||
|
||||
# We should always return 0
|
||||
return 0
|
||||
}
|
Reference in New Issue
Block a user