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:
William Hubbs 2017-03-16 10:16:39 -05:00
parent 48db17a93f
commit 9bd63b5d4a
28 changed files with 27 additions and 16 deletions

View File

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

View File

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

View File

@ -13,6 +13,7 @@ description="Creates the dev database"
depend() depend()
{ {
after clock
need localmount need localmount
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,6 +13,7 @@ required_files="/etc/newsyslog.conf"
depend() depend()
{ {
after clock
need localmount need localmount
keyword -prefix keyword -prefix
} }

View File

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

View File

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

View File

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

View File

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

View File

@ -11,6 +11,7 @@
depend() depend()
{ {
after clock
before fsck before fsck
keyword -jail -prefix keyword -jail -prefix
} }

View File

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

View File

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

View File

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

View File

@ -11,6 +11,7 @@
depend() depend()
{ {
after clock
before bootmisc logger before bootmisc logger
keyword -prefix -systemd-nspawn -vserver keyword -prefix -systemd-nspawn -vserver
} }

View File

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

View File

@ -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()

View File

@ -11,7 +11,7 @@
depend() depend()
{ {
after fsck after clock fsck
keyword -prefix keyword -prefix
} }

View File

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

View File

@ -11,6 +11,7 @@
depend() depend()
{ {
after clock
need localmount need localmount
keyword -prefix keyword -prefix
} }