fiss

Friedel's Initialization and Service Supervision
Log | Files | Refs | LICENSE

commit a81e17a495b839f62a1f844bbc501cc5e1f3dee2
parent d3507d1843999cbff35d2d0b9aae61dca14dcff2
Author: Friedel Schön <[email protected]>
Date:   Mon,  8 May 2023 14:43:31 +0200

fixing st{art,op}.d in /usr/share/fiss/...

Diffstat:
Aetc/start.d/09-fiss.sh | 2++
Aetc/start.d/97-dmesg.sh | 6++++++
Musr/share/fiss/start | 12++----------
Musr/share/fiss/stop | 2+-
4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/etc/start.d/09-fiss.sh b/etc/start.d/09-fiss.sh @@ -0,0 +1,2 @@ +# create files for controlling fiss +mkdir -p /run/fiss/log diff --git a/etc/start.d/97-dmesg.sh b/etc/start.d/97-dmesg.sh @@ -0,0 +1,6 @@ +dmesg >/var/log/dmesg.log +if [ $(sysctl -n kernel.dmesg_restrict 2>/dev/null) -eq 1 ]; then + chmod 0600 /var/log/dmesg.log +else + chmod 0644 /var/log/dmesg.log +fi diff --git a/usr/share/fiss/start b/usr/share/fiss/start @@ -11,19 +11,11 @@ msg "Welcome to Void (fiss version)!" # Start core services: one-time system tasks. detect_virt -for f in /etc/fiss/start.d/*.sh; do + +for f in /etc/start.d/*.sh; do [ -r $f ] && . $f done -dmesg >/var/log/dmesg.log -if [ $(sysctl -n kernel.dmesg_restrict 2>/dev/null) -eq 1 ]; then - chmod 0600 /var/log/dmesg.log -else - chmod 0644 /var/log/dmesg.log -fi - -# create files for controlling fiss -mkdir -p /run/fiss/log msg "Initialization complete, running stage 2..." diff --git a/usr/share/fiss/stop b/usr/share/fiss/stop @@ -11,6 +11,6 @@ detect_virt [ -r /etc/rc.shutdown ] && . /etc/rc.shutdown -for f in /etc/fiss/stop.d/*.sh; do +for f in /etc/stop.d/*.sh; do [ -r $f ] && . $f done