mirror of
https://github.com/troglobit/finit.git
synced 2026-11-27 20:48:24 +00: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:
1 parent
f3a000560f
commit
7c4a9ad5af
2 files changed
+11
-2
No files matched your search
@@ -14,13 +14,16 @@ runlevel 2
|
|||||||
service [S12345] /sbin/klogd -n -- Kernel log daemon
|
service [S12345] /sbin/klogd -n -- Kernel log daemon
|
||||||
service [S12345] /sbin/syslogd -n -- Syslog 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 bringup script, blocks boot like run stanza, use below task instead
|
||||||
#network /sbin/ifup -a
|
#network /sbin/ifup -a
|
||||||
|
|
||||||
### Every line below can be a service/task per file in /etc/finit.d/*.conf ###
|
### 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.
|
# 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.
|
# Depends on syslogd having started. Redirect any output to log.
|
||||||
service [2345] log <svc/sbin/syslogd> /usr/sbin/acpid -f -- ACPI daemon
|
service [2345] log <svc/sbin/syslogd> /usr/sbin/acpid -f -- ACPI daemon
|
||||||
|
|||||||
@@ -1,2 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/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