mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
alpine: Migrate rc.local bootstrap tasks to finit.conf
Finit now supports pipes and redirects in run/task stanzas. Hence, we can reduce rc.local to an example template. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -14,13 +14,16 @@ runlevel 2
|
||||
service [S12345] /sbin/klogd -n -- Kernel log daemon
|
||||
service [S12345] /sbin/syslogd -n -- Syslog daemon
|
||||
|
||||
# Misc oneshot bootstrap tasks
|
||||
task [S] zcat /etc/keymap/se.bmap.gz | loadkmap -- Loading keymap
|
||||
|
||||
# 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
|
||||
#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
|
||||
|
||||
@@ -1,2 +1,8 @@
|
||||
#!/bin/sh
|
||||
zcat /etc/keymap/se.bmap.gz | loadkmap
|
||||
# This script is executed once at boot, at the very end,
|
||||
# right before starting the TTYs.
|
||||
#
|
||||
# Each line is run in sequence.
|
||||
#
|
||||
# NOTE: Remeber to set the executable bit!
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user