Added etc/runit bootscripts and runsvdir

This commit is contained in:
AwesomeAdam54321 2022-12-11 10:00:47 +08:00
parent b89079acdb
commit 4579c1d1dd
86 changed files with 119 additions and 0 deletions

15
etc/runit/1 Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
# system one time tasks
PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
mount -o remount,rw /
mkdir /dev/shm
chmod 1777 /dev/shm
#/etc/rcS.d
#/etc/init.d/rmnologin
touch /run/runit.stopit
chmod 0 /run/runit.stopit
#[ -e /etc/runit/no-emulate-sysv ] || /etc/rc5.d

6
etc/runit/2 Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
exec env - PATH=$PATH \
runsvdir -P /etc/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'

15
etc/runit/3 Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
exec 2>&1
PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
LAST=0
test -x /run/runit.reboot && LAST=6
echo 'Waiting for services to stop...'
sv -w196 force-stop /etc/service/*
sv exit /etc/service/*
echo 'Shutdown...'
#/etc/rc$LAST.d
mount -o remount,ro /

View file

@ -0,0 +1 @@
/etc/sv/ModemManager

View file

@ -0,0 +1 @@
/etc/sv/NetworkManager

View file

@ -0,0 +1 @@
/etc/sv/NetworkManager-dispatcher

View file

@ -0,0 +1 @@
/etc/sv/NetworkManager-wait-online

View file

@ -0,0 +1 @@
/etc/sv/accounts-daemon

View file

@ -0,0 +1 @@
/etc/sv/apparmor

View file

@ -0,0 +1 @@
/etc/sv/apt-daily

View file

@ -0,0 +1 @@
/etc/sv/apt-daily-upgrade

View file

@ -0,0 +1 @@
/etc/sv/avahi-daemon

View file

@ -0,0 +1 @@
/etc/sv/binfmt-support

View file

@ -0,0 +1 @@
/etc/sv/casper

View file

@ -0,0 +1 @@
/etc/sv/colord

View file

@ -0,0 +1 @@
/etc/sv/console-setup

View file

@ -0,0 +1 @@
/etc/sv/cron

View file

@ -0,0 +1 @@
/etc/sv/cups

View file

@ -0,0 +1 @@
/etc/sv/cups-browsed

View file

@ -0,0 +1 @@
/etc/sv/dbus

View file

@ -0,0 +1 @@
/etc/sv/lightdm

View file

@ -0,0 +1 @@
/etc/sv/dm-event

View file

@ -0,0 +1 @@
/etc/sv/dns-clean

View file

@ -0,0 +1 @@
/etc/sv/e2scrub_all

View file

@ -0,0 +1 @@
/etc/sv/e2scrub_reap

View file

@ -0,0 +1 @@
/etc/sv/firewalld

View file

@ -0,0 +1 @@
/etc/sv/fstrim

View file

@ -0,0 +1 @@
/etc/sv/getty@tty2

View file

@ -0,0 +1 @@
/etc/sv/grub-common

View file

@ -0,0 +1 @@
/etc/sv/grub-initrd-fallback

View file

@ -0,0 +1 @@
/etc/sv/ifupdown-wait-online

View file

@ -0,0 +1 @@
/etc/sv/initrd-udevadm-cleanup-db

View file

@ -0,0 +1 @@
/etc/sv/irqbalance

View file

@ -0,0 +1 @@
/etc/sv/keyboard-setup

View file

@ -0,0 +1 @@
/etc/sv/kmod

View file

@ -0,0 +1 @@
/etc/sv/kmod-static-nodes

View file

@ -0,0 +1 @@
/etc/sv/lightdm

View file

@ -0,0 +1 @@
/etc/sv/lm-sensors

View file

@ -0,0 +1 @@
/etc/sv/logrotate

View file

@ -0,0 +1 @@
/etc/sv/lvm2-lvmpolld

View file

@ -0,0 +1 @@
/etc/sv/lvm2-monitor

View file

@ -0,0 +1 @@
/etc/sv/man-db

View file

@ -0,0 +1 @@
/etc/sv/motd-news

View file

@ -0,0 +1 @@
/etc/sv/networkd-dispatcher

View file

@ -0,0 +1 @@
/etc/sv/networking

View file

@ -0,0 +1 @@
/etc/sv/nmbd

View file

@ -0,0 +1 @@
/etc/sv/ntp

View file

@ -0,0 +1 @@
/etc/sv/ondemand

View file

@ -0,0 +1 @@
/etc/sv/packagekit

View file

@ -0,0 +1 @@
/etc/sv/packagekit-offline-update

View file

@ -0,0 +1 @@
/etc/sv/plymouth-halt

View file

@ -0,0 +1 @@
/etc/sv/plymouth-kexec

View file

@ -0,0 +1 @@
/etc/sv/plymouth-poweroff

View file

@ -0,0 +1 @@
/etc/sv/plymouth-quit

View file

@ -0,0 +1 @@
/etc/sv/plymouth-quit-wait

View file

@ -0,0 +1 @@
/etc/sv/plymouth-read-write

View file

@ -0,0 +1 @@
/etc/sv/plymouth-reboot

View file

@ -0,0 +1 @@
/etc/sv/plymouth-start

View file

@ -0,0 +1 @@
/etc/sv/plymouth-switch-root

View file

@ -0,0 +1 @@
/etc/sv/polkit

View file

@ -0,0 +1 @@
/etc/sv/pppd-dns

View file

@ -0,0 +1 @@
/etc/sv/pulseaudio-daemon

View file

@ -0,0 +1 @@
/etc/sv/resolvconf

View file

@ -0,0 +1 @@
/etc/sv/resolvconf-pull-resolved

View file

@ -0,0 +1 @@
/etc/sv/rsync

View file

@ -0,0 +1 @@
/etc/sv/rsyslog

View file

@ -0,0 +1 @@
/etc/sv/rtkit-daemon

View file

@ -0,0 +1 @@
/etc/sv/smartmontools

View file

@ -0,0 +1 @@
/etc/sv/smartmontools

View file

@ -0,0 +1 @@
/etc/sv/smbd

View file

@ -0,0 +1 @@
/etc/sv/rsyslog

View file

@ -0,0 +1 @@
/etc/sv/systemd-hostnamed

View file

@ -0,0 +1 @@
/etc/sv/systemd-localed

View file

@ -0,0 +1 @@
/etc/sv/systemd-logind

View file

@ -0,0 +1 @@
/etc/sv/systemd-networkd

View file

@ -0,0 +1 @@
/etc/sv/systemd-networkd-wait-online

View file

@ -0,0 +1 @@
/etc/sv/systemd-resolved

View file

@ -0,0 +1 @@
/etc/sv/systemd-udev-settle

View file

@ -0,0 +1 @@
/etc/sv/systemd-udev-trigger

View file

@ -0,0 +1 @@
/etc/sv/systemd-udevd

View file

@ -0,0 +1 @@
/etc/sv/systemd-user-sessions

View file

@ -0,0 +1 @@
/etc/sv/tlp

View file

@ -0,0 +1 @@
/etc/sv/ua-messaging

View file

@ -0,0 +1 @@
/etc/sv/usbmuxd

View file

@ -0,0 +1 @@
/etc/sv/wpa_supplicant

View file

@ -0,0 +1 @@
/etc/sv/yacy