Files
finit/contrib/alpine/finit.conf
T
Joachim Nilsson 0df0f019e3 Alpine Linux finit.conf updates
First lessons from Debian, more to come ...

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-07-29 01:08:48 +02:00

44 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
# Devices to fsck at boot
check /dev/vda1
# 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