kisscommunity

kisscommunity.bvnf.space site sources
Log | Files | Refs | Submodules | README

commit 378032dcff9d0d92e07deb94bda492e74320ce0d
parent cf8b06c4460445c3e8fd28dac38fac9384db55d2
Author: aabacchus <ben@bvnf.space>
Date:   Wed,  8 Jun 2022 15:39:30 +0100

init/busybox: convert

Diffstat:
Awiki/init/busybox/index.md | 77+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dwiki/init/busybox/index.txt | 78------------------------------------------------------------------------------
2 files changed, 77 insertions(+), 78 deletions(-)

diff --git a/wiki/init/busybox/index.md b/wiki/init/busybox/index.md @@ -0,0 +1,77 @@ +MANAGING SERVICES WITH BUSYBOX +============================== + +KISS uses busybox's init with busybox's runit utilities for services by default. + + +Basic usage +----------- + + +---------+--------------------------------------------------------------------+ + | Action | Command | + |---------+--------------------------------------------------------------------| + | List | $ ls /etc/sv/ | + | | | + | Enable | $ ln -s /etc/sv/SERVICE_NAME/ /var/service | + | Disable | $ unlink /var/service/SERVICE_NAME | + | | | + | Stop | $ sv down SERVICE_NAME | + | Start | $ sv up SERVICE_NAME | + | Status | $ sv status SERVICE_NAME | + | | | + +---------+--------------------------------------------------------------------+ + +See <https://git.busybox.net/busybox/tree/runit/sv.c> for full usage. + + +Running commands during boot/shutdown +------------------------------------- + +This can be accomplished in a generic way (using /etc/rc.d) or by modifying the +busybox-init only /etc/inittab file. + + +### Using /etc/rc.d + +This method of configuration works with every init system which uses the +KISS init framework. See <https://github.com/kisslinux/init> + + +--------------------------------------------------------------------------+ + | Run command during boot. | + +--------------------------------------------------------------------------+ + | | + | # Load the iwlwifi kernel module. | + | echo "modprobe iwlwifi" > /etc/rc.d/wifi.boot | + | | + +--------------------------------------------------------------------------+ + | Run command during shutdown. | + +--------------------------------------------------------------------------+ + | | + | # Save system time to hwclock. | + | echo "hwclock -w" > /etc/rc.d/hwclock.pre.shutdown | + | | + +--------------------------------------------------------------------------+ + | | + | TIP: .post.shutdown can also be used. | + | | + +--------------------------------------------------------------------------+ + + +### Using /etc/inittab + + +--------------------------------------------------------------------------+ + | Run command during boot. | + +--------------------------------------------------------------------------+ + | | + | # Load the iwlwifi kernel module. | + | ::once:/bin/modprobe iwlwifi | + | | + +--------------------------------------------------------------------------+ + | Run command during shutdown. | + +--------------------------------------------------------------------------+ + | | + | # Save system time to hwclock. | + | ::shutdown:/bin/hwclock -w | + | | + +--------------------------------------------------------------------------+ + diff --git a/wiki/init/busybox/index.txt b/wiki/init/busybox/index.txt @@ -1,78 +0,0 @@ -MANAGING SERVICES WITH BUSYBOX -________________________________________________________________________________ - -KISS uses busybox's init with busybox's runit utilities for services by default. - - -Basic usage -________________________________________________________________________________ - -+---------+--------------------------------------------------------------------+ -| Action | Command | -|---------+--------------------------------------------------------------------| -| List | $ ls /etc/sv/ | -| | | -| Enable | $ ln -s /etc/sv/SERVICE_NAME/ /var/service | -| Disable | $ unlink /var/service/SERVICE_NAME | -| | | -| Stop | $ sv down SERVICE_NAME | -| Start | $ sv up SERVICE_NAME | -| | | -+---------+--------------------------------------------------------------------+ - -See https://git.busybox.net/busybox/tree/runit/sv.c for full usage. - - -Running commands during boot/shutdown -________________________________________________________________________________ - -This can be accomplished in a generic way (using /etc/rc.d) or by modifying the -busybox-init only /etc/inittab file. - - - Using /etc/rc.d - ____________________________________________________________________________ - - This method of configuration works with every init system which uses the - KISS init framework. See $/kiss-community/init - - +--------------------------------------------------------------------------+ - | Run command during boot. | - +--------------------------------------------------------------------------+ - | | - | # Load the iwlwifi kernel module. | - | echo "modprobe iwlwifi" > /etc/rc.d/wifi.boot | - | | - +--------------------------------------------------------------------------+ - | Run command during shutdown. | - +--------------------------------------------------------------------------+ - | | - | # Save system time to hwclock. | - | echo "hwclock -w" > /etc/rc.d/hwclock.pre.shutdown | - | | - +--------------------------------------------------------------------------+ - | | - | TIP: .post.shutdown can also be used. | - | | - +--------------------------------------------------------------------------+ - - - Using /etc/inittab - ____________________________________________________________________________ - - +--------------------------------------------------------------------------+ - | Run command during boot. | - +--------------------------------------------------------------------------+ - | | - | # Load the iwlwifi kernel module. | - | ::once:/bin/modprobe iwlwifi | - | | - +--------------------------------------------------------------------------+ - | Run command during shutdown. | - +--------------------------------------------------------------------------+ - | | - | # Save system time to hwclock. | - | ::shutdown:/bin/hwclock -w | - | | - +--------------------------------------------------------------------------+ -