mirror of
https://github.com/pygos/init.git
synced 2024-11-16 08:47:10 +01:00
Cleanup service dependencies
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
4b047ad61e
commit
f9d75896f4
17 changed files with 22 additions and 11 deletions
|
@ -47,6 +47,7 @@ install-data-local:
|
||||||
$(LN_S) $(TEMPLATEDIR)/ifdown $(DESTDIR)$(SVCDIR)/ifdown@reboot
|
$(LN_S) $(TEMPLATEDIR)/ifdown $(DESTDIR)$(SVCDIR)/ifdown@reboot
|
||||||
$(LN_S) $(TEMPLATEDIR)/ifcfg $(DESTDIR)$(SVCDIR)/ifcfg
|
$(LN_S) $(TEMPLATEDIR)/ifcfg $(DESTDIR)$(SVCDIR)/ifcfg
|
||||||
$(LN_S) $(TEMPLATEDIR)/modules $(DESTDIR)$(SVCDIR)/modules
|
$(LN_S) $(TEMPLATEDIR)/modules $(DESTDIR)$(SVCDIR)/modules
|
||||||
|
$(LN_S) $(TEMPLATEDIR)/network $(DESTDIR)$(SVCDIR)/network
|
||||||
if USYSLOGD
|
if USYSLOGD
|
||||||
$(LN_S) $(TEMPLATEDIR)/usyslogd $(DESTDIR)$(SVCDIR)/usyslogd
|
$(LN_S) $(TEMPLATEDIR)/usyslogd $(DESTDIR)$(SVCDIR)/usyslogd
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -7,6 +7,7 @@ init_DATA += services/sysfs services/procfs services/tmpfs
|
||||||
init_DATA += services/vfs services/ifrename services/ifcfg
|
init_DATA += services/vfs services/ifrename services/ifcfg
|
||||||
init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound
|
init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound
|
||||||
init_DATA += services/dnsmasq services/ifdown services/modules
|
init_DATA += services/dnsmasq services/ifdown services/modules
|
||||||
|
init_DATA += services/network
|
||||||
|
|
||||||
if USYSLOGD
|
if USYSLOGD
|
||||||
init_DATA += services/usyslogd
|
init_DATA += services/usyslogd
|
||||||
|
@ -16,4 +17,4 @@ EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
|
||||||
EXTRA_DIST += services/hwclock services/loopback services/reboot
|
EXTRA_DIST += services/hwclock services/loopback services/reboot
|
||||||
EXTRA_DIST += services/shutdown services/sync services/sysctl services/tmpfs
|
EXTRA_DIST += services/shutdown services/sync services/sysctl services/tmpfs
|
||||||
EXTRA_DIST += services/dhcpcd services/dhcpcdmaster services/unbound
|
EXTRA_DIST += services/dhcpcd services/dhcpcdmaster services/unbound
|
||||||
EXTRA_DIST += services/usyslogd services/dnsmasq
|
EXTRA_DIST += services/usyslogd services/dnsmasq services/network
|
||||||
|
|
|
@ -2,5 +2,5 @@ description agetty on %0
|
||||||
exec agetty %0 linux
|
exec agetty %0 linux
|
||||||
type respawn
|
type respawn
|
||||||
target boot
|
target boot
|
||||||
after sysinit
|
after network
|
||||||
tty "/dev/%0"
|
tty "/dev/%0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
description "DHCP client on %0"
|
description "DHCP client on %0"
|
||||||
type once
|
type once
|
||||||
target boot
|
target boot
|
||||||
after dhcpcdmaster
|
after dhcpcdmaster network
|
||||||
|
|
||||||
exec dhcpcd -n %0
|
exec dhcpcd -n %0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
description "DHCP client - master service"
|
description "DHCP client - master service"
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
after sysinit ifrename ifcfg
|
after network
|
||||||
|
|
||||||
exec {
|
exec {
|
||||||
mkdir -p /var/db/dhcpcd
|
mkdir -p /var/db/dhcpcd
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
description "dnsmasq DNS & DHCP server"
|
description "dnsmasq DNS & DHCP server"
|
||||||
type respawn limit 5
|
type respawn limit 5
|
||||||
target boot
|
target boot
|
||||||
after sysinit ifcfg unbound
|
after network unbound
|
||||||
|
|
||||||
exec dnsmasq -k
|
exec dnsmasq -k
|
||||||
|
|
|
@ -3,4 +3,4 @@ exec hwclock --hctosys --utc
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
before sysinit
|
before sysinit
|
||||||
after vfs
|
after vfs modules
|
||||||
|
|
|
@ -2,5 +2,6 @@ description "static network configuration"
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
after sysinit ifrename
|
after sysinit ifrename
|
||||||
|
before network
|
||||||
|
|
||||||
exec "@SCRIPTDIR@/ifcfg.sh"
|
exec "@SCRIPTDIR@/ifcfg.sh"
|
|
@ -2,5 +2,6 @@ description "rename network interfaces"
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
after sysinit
|
after sysinit
|
||||||
|
before network
|
||||||
|
|
||||||
exec "@SCRIPTDIR@/ifrename.sh"
|
exec "@SCRIPTDIR@/ifrename.sh"
|
|
@ -2,7 +2,7 @@ description configure network loopback device
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
before sysinit
|
before sysinit
|
||||||
after hwclock hostname vfs
|
after hostname vfs
|
||||||
|
|
||||||
exec {
|
exec {
|
||||||
ip addr add 127.0.0.1/8 dev lo brd +
|
ip addr add 127.0.0.1/8 dev lo brd +
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
description "load kernel modules"
|
description "load kernel modules"
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
after vfs
|
after vfs usyslogd
|
||||||
before sysinit
|
before sysinit
|
||||||
|
|
||||||
exec "@SCRIPTDIR@/modules_load.sh"
|
exec "@SCRIPTDIR@/modules_load.sh"
|
4
services/network
Normal file
4
services/network
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
description "static network configuration completed"
|
||||||
|
type wait
|
||||||
|
target boot
|
||||||
|
after sysinit
|
|
@ -3,4 +3,4 @@ exec sysctl --system
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
before sysinit
|
before sysinit
|
||||||
after hwclock hostname vfs
|
after vfs loopback
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
description basic system initialization
|
description basic system initialization
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
|
after vfs
|
||||||
|
before network
|
|
@ -1,6 +1,6 @@
|
||||||
description "Unbound resolver"
|
description "Unbound resolver"
|
||||||
type respawn limit 5
|
type respawn limit 5
|
||||||
target boot
|
target boot
|
||||||
after sysinit ifcfg
|
after network
|
||||||
|
|
||||||
exec unbound -d
|
exec unbound -d
|
||||||
|
|
|
@ -2,5 +2,5 @@ description "starting usyslogd"
|
||||||
exec usyslogd
|
exec usyslogd
|
||||||
type respawn limit 5
|
type respawn limit 5
|
||||||
target boot
|
target boot
|
||||||
after hostname vfs
|
after vfs
|
||||||
before sysinit
|
before sysinit
|
|
@ -1,3 +1,4 @@
|
||||||
description VFS setup done
|
description VFS setup done
|
||||||
type wait
|
type wait
|
||||||
target boot
|
target boot
|
||||||
|
before sysinit
|
Loading…
Reference in a new issue