fbt's watchman with sinit and spark-rc:
Stuff you need:
http://tools.suckless.org/sinit
https://github.com/fbt/spark-rc
https://github.com/fbt/watchman
https://github.com/fbt/watchman-services
On Arch I also needed sysvinit-tools-adds (for killall5). Both this package and the others are available from the AUR.
Configuration:
sinit: config.h, change rcinitcmd (assumes spark-rc is in /bin)
Code: Select all
static char *const rcinitcmd[] = { "/bin/rc", NULL };
static char *const rcrebootcmd[] = { "/bin/rc", "reboot", NULL };
static char *const rcpoweroffcmd[] = { "/bin/rc", "poweroff", NULL };
Haven't noticed major problems so far, except I messed up GRUB (and had to manually add " rw "), and some unexpected behaviour with reboots.