mirror of
https://github.com/troglobit/finit.git
synced 2026-10-03 14:33:12 +07:00
This patch adds support for running fsck on all file systems listed in /etc/fstab with a passno > 0. The fsck runs sequentially, starting with the root fs (passno 1). Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
# /etc/finit.conf: Example for Alpine Linux 3.4
|
|
|
|
# Modules to load
|
|
#module qxl
|
|
#module fbcon
|
|
module button
|
|
module evdev
|
|
|
|
# Runlevel to start after bootstrap, runlevel 'S'
|
|
runlevel 2
|
|
|
|
# Services to be monitored and respawned as needed
|
|
service [S12345] /sbin/klogd -n -- Kernel log daemon
|
|
service [S12345] /sbin/syslogd -n -- Syslog daemon
|
|
|
|
# Network bringup script, blocks boot like run stanza, use below task instead
|
|
#network /sbin/ifup -a
|
|
|
|
### Every line below can be a service/task per file in /etc/finit.d/*.conf ###
|
|
|
|
# Network bringup not needed if /etc/network/interfaces is used.
|
|
task [2345] log <svc/sbin/syslogd> /sbin/ifup -a -- Networking
|
|
|
|
# Depends on syslogd having started. Redirect any output to log.
|
|
service [2345] log <svc/sbin/syslogd> /usr/sbin/acpid -f -- ACPI daemon
|
|
|
|
# Silly Busybox ntpd has no option to use syslog when running in foreground
|
|
service [2345] log <svc/sbin/syslogd> /usr/sbin/ntpd -n -N -p pool.ntp.org
|
|
|
|
# Start SSH daemon as soon as basic networking comes up
|
|
service [2345] <net/lo/up> /usr/sbin/dropbear -R -F -p 22 -- Dropbear SSH daemon
|
|
service [2345] <svc/sbin/syslogd> /usr/sbin/crond -f -S -c /etc/crontabs -- Cron daemon
|
|
|
|
# Handle PWR button to shutdown/reboot -- useful in Qemu (virt-manager)
|
|
service [2345] /sbin/acpid -f -- ACPI daemon
|
|
|
|
# Consoles to start getty on when system is up
|
|
tty /dev/tty1
|
|
tty /dev/tty2
|
|
tty /dev/tty3
|