diff --git a/contrib/alpine/README.md b/contrib/alpine/README.md index 99929211..75829c5d 100644 --- a/contrib/alpine/README.md +++ b/contrib/alpine/README.md @@ -11,11 +11,11 @@ default they install to `/usr/local` and Alpine's `pkg-config` does not look for libraries and header files there. So the `PKG_CONFIG_LIBDIR` environment variable has to be used: - alpine:~/finit# PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig ./configure \ - --enable-embedded --enable-rw-rootfs --enable-inetd-echo-plugin \ - --enable-inetd-chargen-plugin --enable-inetd-daytime-plugin \ - --enable-inetd-discard-plugin --enable-inetd-time-plugin \ - --with-heading="Alpine Linux 3.4" --with-hostname=alpine + alpine:~/finit# PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig ./configure \ + --enable-embedded --enable-rw-rootfs --enable-inetd-echo-plugin \ + --enable-inetd-chargen-plugin --enable-inetd-daytime-plugin \ + --enable-inetd-discard-plugin --enable-inetd-time-plugin \ + --with-heading="Alpine Linux 3.4" --with-hostname=alpine The plugins are optional, but the other configure flags are *not*. @@ -30,3 +30,11 @@ Before rebooting, make sure to install `/etc/finit.conf` and the glue be tweaked for your installation, you may not run Dropbear SSH or speak Swedish ... +[libuEv]: https://github.com/troglobit/libuev +[libite]: https://github.com/troglobit/libite + + diff --git a/contrib/alpine/finit.conf b/contrib/alpine/finit.conf index 6810c378..610675e0 100644 --- a/contrib/alpine/finit.conf +++ b/contrib/alpine/finit.conf @@ -1,5 +1,8 @@ -# Sample finit.conf for booting Alpine Linux 3.4 -# +# /etc/finit.conf: Example for Alpine Linux 3.4 + +# Modules to load +#module qxl +#module fbcon # Devices to fsck at boot check /dev/vda1 @@ -7,22 +10,29 @@ check /dev/vda1 # Runlevel to start after bootstrap, runlevel 'S' runlevel 2 -# Network bringup script -network /sbin/ifup -a - -#task [S] /etc/ -- Setting up preliminary keymap +# Network bringup script, blocks boot like run stanza, use below task instead +#network /sbin/ifup -a # Services to be monitored and respawned as needed -service [2345] /sbin/klogd -n -- Kernel logging server -service [2345] /sbin/syslogd -n -- Syslog server -service [2345] /usr/sbin/dropbear -R -F -p 22 -- Dropbear SSH daemon -service [2345] /usr/sbin/crond -f -S -c /etc/crontabs -- Cron daemon -service [2345] log /usr/sbin/ntpd -n -N -p pool.ntp.org -#service [2345] /sbin/acpid -f -- ACPI daemon +service [S12345] /sbin/klogd -n -- Kernel log daemon +service [S12345] /sbin/syslogd -n -- Syslog daemon -# Virtual consoles to start getty on +### Every line below can be a service/task per file in /etc/finit.d/*.conf ### + +# One-shot task to start Debian/Busybox style /etc/network/interfaces +# Depends on syslogd having started. Redirect any output to log. +task [2345] log /sbin/ifup -a -- Networking + +# Start SSH daemon as soon as basic networking comes up +service [2345] /usr/sbin/dropbear -R -F -p 22 -- Dropbear SSH daemon +service [2345] /usr/sbin/crond -f -S -c /etc/crontabs -- Cron daemon + +# Silly Busybox ntpd has no option to use syslog when running in foreground +service [2345] log /usr/sbin/ntpd -n -N -p pool.ntp.org +#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 -#console /dev/tty1