mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
contrib, system: convert the shipped .conf files to the block format
The examples people copy from were still written in the line-based
format, so the block format was documented but nowhere demonstrated.
Two names in contrib were accidents of the old format, where the
service name falls out of the command basename: the Alpine and Void
keymap task was called zcat, and Debian's console/keyboard setup tasks
carried a .sh suffix. They now carry the name their file implies.
Nothing referenced the old names.
The mdevd coldplug path keeps the name it has always had. Its legacy
line spelled the name inside the cgroup argument, where it names the
cgroup leaf and not the service, so the barrier condition really is
<run/mdevd-coldplug/success> and not the <run/coldplug/success> the
comment above it promises. Converted as-is so boot ordering does not
change; the discrepancy is now written down where it happens.
A list may not contain comments, the lexer sees the entries after the
'#' regardless:
modules = {
# "fbcon",
"softdog"
}
so the commented-out module candidates sit above the list instead.
setup-sysroot.sh removes 10-hotplug.conf from the test sysroot, so that
file is covered by parsing only, not by make check.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
46 files changed
+587
-156
No files matched your search
@@ -1,3 +1,7 @@
|
||||
# Handle PWR button to shutdown/reboot -- useful in Qemu (virt-manager)
|
||||
# Depends on syslogd having started. Redirect any output to log.
|
||||
service [2345] acpid -f -- ACPI daemon
|
||||
service acpid {
|
||||
description = "ACPI daemon"
|
||||
runlevel = "2345"
|
||||
command = "acpid -f"
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
service [2345] <pid/syslogd> crond -f -S -c /etc/crontabs -- Cron daemon
|
||||
service crond {
|
||||
description = "Cron daemon"
|
||||
runlevel = "2345"
|
||||
conditions = { "pid/syslogd" }
|
||||
command = "crond -f -S -c /etc/crontabs"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
service [2345] dhcpcd -B -M -- DHCP client
|
||||
service dhcpcd {
|
||||
description = "DHCP client"
|
||||
runlevel = "2345"
|
||||
command = "dhcpcd -B -M"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
service [S12345] dmeventd -f -- Device mapper event daemon
|
||||
service dmeventd {
|
||||
description = "Device mapper event daemon"
|
||||
runlevel = "S12345"
|
||||
command = "dmeventd -f"
|
||||
}
|
||||
@@ -1,4 +1,19 @@
|
||||
# Consoles to start Finit built-in getty on when system is up
|
||||
tty [12345] /dev/tty1 noclear nowait
|
||||
tty [2345] /dev/tty2 noclear nowait
|
||||
tty [2345] /dev/tty3 noclear nowait
|
||||
tty tty1 {
|
||||
runlevel = "12345"
|
||||
device = "/dev/tty1"
|
||||
noclear = true
|
||||
nowait = true
|
||||
}
|
||||
tty tty2 {
|
||||
runlevel = "2345"
|
||||
device = "/dev/tty2"
|
||||
noclear = true
|
||||
nowait = true
|
||||
}
|
||||
tty tty3 {
|
||||
runlevel = "2345"
|
||||
device = "/dev/tty3"
|
||||
noclear = true
|
||||
nowait = true
|
||||
}
|
||||
@@ -1,2 +1,6 @@
|
||||
# Oneshot task to run once at bootstrap
|
||||
task [S] zcat /etc/keymap/se.bmap.gz | loadkmap -- Loading keymap
|
||||
task keymap {
|
||||
description = "Loading keymap"
|
||||
runlevel = "S"
|
||||
command = "zcat /etc/keymap/se.bmap.gz | loadkmap"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
service [2345] lxdm -- Lightweight Login Manager
|
||||
service lxdm {
|
||||
description = "Lightweight Login Manager"
|
||||
runlevel = "2345"
|
||||
command = "lxdm"
|
||||
}
|
||||
@@ -1,7 +1,3 @@
|
||||
## Linux kernel modules to load
|
||||
#module fbcon
|
||||
#module button
|
||||
#module evdev
|
||||
#module mousedev
|
||||
#module 8139cp
|
||||
module softdog
|
||||
# Other candidates: fbcon, button, evdev, mousedev, 8139cp
|
||||
modules = { "softdog" }
|
||||
@@ -1,2 +1,8 @@
|
||||
# Silly Busybox ntpd has no option to use syslog when running in foreground
|
||||
service [2345] <pid/syslogd> log ntpd -n -N -p pool.ntp.org -- NTP daemon
|
||||
service ntpd {
|
||||
description = "NTP daemon"
|
||||
runlevel = "2345"
|
||||
conditions = { "pid/syslogd" }
|
||||
log { }
|
||||
command = "ntpd -n -N -p pool.ntp.org"
|
||||
}
|
||||
@@ -1,2 +1,6 @@
|
||||
# Start SSH daemon as soon as basic networking comes up
|
||||
service [2345] /usr/sbin/sshd -D -- OpenSSH daemon
|
||||
service sshd {
|
||||
description = "OpenSSH daemon"
|
||||
runlevel = "2345"
|
||||
command = "/usr/sbin/sshd -D"
|
||||
}
|
||||
@@ -1,4 +1,13 @@
|
||||
# Start syslogd as soon as possible, should always run
|
||||
# Start klogd as soon as possible, but after syslogd
|
||||
service [S12345] syslogd -n -- Syslog daemon
|
||||
service [S12345] <pid/syslogd> klogd -n -- Kernel log daemon
|
||||
service syslogd {
|
||||
description = "Syslog daemon"
|
||||
runlevel = "S12345"
|
||||
command = "syslogd -n"
|
||||
}
|
||||
service klogd {
|
||||
description = "Kernel log daemon"
|
||||
runlevel = "S12345"
|
||||
conditions = { "pid/syslogd" }
|
||||
command = "klogd -n"
|
||||
}
|
||||
@@ -1 +1,7 @@
|
||||
service @uuidd:uuidd [2345] uuidd -F -- UUID generation daemon
|
||||
service uuidd {
|
||||
description = "UUID generation daemon"
|
||||
runlevel = "2345"
|
||||
user = "uuidd"
|
||||
group = "uuidd"
|
||||
command = "uuidd -F"
|
||||
}
|
||||
Reference in new issue
Block a user