update dependencies for clock service
The clock services had a very long list of "before" dependencies that referred to other services within OpenRC. For ease of maintenance, convert these to "after clock" dependencies in the individual services.
This commit is contained in:
parent
48db17a93f
commit
9bd63b5d4a
@ -23,6 +23,7 @@ fi
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after swclock
|
||||||
provide clock
|
provide clock
|
||||||
# BSD adjkerntz needs to be able to write to /etc
|
# BSD adjkerntz needs to be able to write to /etc
|
||||||
if [ "$clock" = "UTC" -a -e /etc/wall_cmos_clock ] ||
|
if [ "$clock" = "UTC" -a -e /etc/wall_cmos_clock ] ||
|
||||||
|
@ -13,7 +13,7 @@ description="Register misc binary format handlers"
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
after procfs
|
after clock procfs
|
||||||
use modules devfs
|
use modules devfs
|
||||||
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ description="Creates the dev database"
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
need localmount
|
need localmount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
description="Configures a specific kernel dump device."
|
description="Configures a specific kernel dump device."
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
|
after clock
|
||||||
need swap
|
need swap
|
||||||
keyword -jail -prefix
|
keyword -jail -prefix
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ _IFS="
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
use dev clock modules
|
use dev clock modules
|
||||||
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -timeout -vserver -uml
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -timeout -vserver -uml
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ extra_commands="reset"
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
use root
|
use root
|
||||||
|
after clock
|
||||||
before devd net
|
before devd net
|
||||||
keyword -jail -prefix
|
keyword -jail -prefix
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
description="Sets the hostname of the machine."
|
description="Sets the hostname of the machine."
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
|
after clock
|
||||||
keyword -docker -lxc -prefix -systemd-nspawn
|
keyword -docker -lxc -prefix -systemd-nspawn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,9 +33,6 @@ depend()
|
|||||||
want modules
|
want modules
|
||||||
if yesno $clock_adjfile; then
|
if yesno $clock_adjfile; then
|
||||||
use root
|
use root
|
||||||
else
|
|
||||||
before binfmt bootmisc fsck hostname keymaps localmount loopback mtab
|
|
||||||
before procfs root swap sysctl termencoding urandom
|
|
||||||
fi
|
fi
|
||||||
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ description="Applies a keymap for the consoles."
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need localmount termencoding
|
need localmount termencoding
|
||||||
after bootmisc
|
after bootmisc clock
|
||||||
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
need fsck
|
need fsck
|
||||||
use lvm modules mtab root
|
use lvm modules mtab root
|
||||||
after lvm modules root
|
after clock lvm modules root
|
||||||
keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver
|
keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ description="Configures the loopback interface."
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
keyword -jail -prefix -systemd-nspawn -vserver
|
keyword -jail -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ description="Update /etc/mtab to match what the kernel knows about"
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
need root
|
need root
|
||||||
keyword -prefix -systemd-nspawn
|
keyword -prefix -systemd-nspawn
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ __nl="
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need localmount
|
need localmount
|
||||||
after bootmisc
|
after bootmisc clock
|
||||||
if [ -n "$(interfaces)" ]; then
|
if [ -n "$(interfaces)" ]; then
|
||||||
provide net
|
provide net
|
||||||
fi
|
fi
|
||||||
|
@ -13,6 +13,7 @@ required_files="/etc/newsyslog.conf"
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
need localmount
|
need localmount
|
||||||
keyword -prefix
|
keyword -prefix
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ description="Mounts misc filesystems in /proc."
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
use devfs
|
use devfs
|
||||||
want modules
|
want modules
|
||||||
need localmount
|
need localmount
|
||||||
|
@ -13,6 +13,7 @@ description="Mount the root fs read/write"
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
need fsck
|
need fsck
|
||||||
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ description="Saves a kernel dump."
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need dumpon localmount
|
need dumpon localmount
|
||||||
|
after clock
|
||||||
before encswap
|
before encswap
|
||||||
keyword -jail -prefix
|
keyword -jail -prefix
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!@SBINDIR@/openrc-run
|
S#!@BINDIR@/openrc-run
|
||||||
# Copyright (c) 2009-2015 The OpenRC Authors.
|
# Copyright (c) 2009-2015 The OpenRC Authors.
|
||||||
# See the Authors file at the top-level directory of this distribution and
|
# See the Authors file at the top-level directory of this distribution and
|
||||||
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
|
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
|
||||||
@ -14,9 +14,9 @@
|
|||||||
description="Configures static routes."
|
description="Configures static routes."
|
||||||
__nl="
|
__nl="
|
||||||
"
|
"
|
||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
provide net
|
provide net
|
||||||
use network
|
use network
|
||||||
keyword -jail -prefix -vserver
|
keyword -jail -prefix -vserver
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
before fsck
|
before fsck
|
||||||
keyword -jail -prefix
|
keyword -jail -prefix
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
before localmount
|
before localmount
|
||||||
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,6 @@ description="Sets the local clock to the mtime of a given file."
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
before adjkerntz binfmt bootmisc devdb dumpon fsck hostid hostname keymaps
|
|
||||||
before localmount loopback modules mtab network newsyslog procfs root
|
|
||||||
before savecore staticroute swap swap-blk syscons sysctl syslogd
|
|
||||||
before termencoding ttys urandom wscons
|
|
||||||
provide clock
|
provide clock
|
||||||
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
# except according to the terms contained in the LICENSE file.
|
# except according to the terms contained in the LICENSE file.
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
|
after clock
|
||||||
need localmount
|
need localmount
|
||||||
keyword -jail -prefix
|
keyword -jail -prefix
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
before bootmisc logger
|
before bootmisc logger
|
||||||
keyword -prefix -systemd-nspawn -vserver
|
keyword -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,6 @@ depend()
|
|||||||
provide logger
|
provide logger
|
||||||
use net newsyslog
|
use net newsyslog
|
||||||
need localmount
|
need localmount
|
||||||
after bootmisc
|
after bootmisc clock
|
||||||
keyword -prefix
|
keyword -prefix
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ depend()
|
|||||||
{
|
{
|
||||||
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
use root
|
use root
|
||||||
after bootmisc
|
after bootmisc clock
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
after fsck
|
after clock fsck
|
||||||
keyword -prefix
|
keyword -prefix
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ description="Initializes the random number generator."
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
need localmount
|
need localmount
|
||||||
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
|
after clock
|
||||||
need localmount
|
need localmount
|
||||||
keyword -prefix
|
keyword -prefix
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user