1 Commits

5 changed files with 14 additions and 6 deletions

View File

@@ -8,4 +8,4 @@ run_sysinit
install -m100 /dev/null @RUNDIR@/stopit install -m100 /dev/null @RUNDIR@/stopit
status "Initialization complete" msg_ok "Initialization complete"

View File

@@ -4,12 +4,10 @@ PATH=/usr/bin:/usr/sbin
. @RCLIBDIR@/functions . @RCLIBDIR@/functions
stat_busy "Stop services ..." msg "Stopping services"
sv force-stop @RUNDIR@/service/* sv force-stop @RUNDIR@/service/*
stat_done msg "Exiting services"
stat_busy "Exit services ..."
sv exit @RUNDIR@/service/* sv exit @RUNDIR@/service/*
stat_done
[ -x @RCDIR@/rc.shutdown ] && @RCDIR@/rc.shutdown [ -x @RCDIR@/rc.shutdown ] && @RCDIR@/rc.shutdown
@@ -23,4 +21,4 @@ if [ -e @RUNDIR@/reboot ]; then
[[ -x $(type -P kexec) ]] && kexec -e &>/dev/null [[ -x $(type -P kexec) ]] && kexec -e &>/dev/null
fi fi
status "Stage 3 completed." msg_ok "Stage 3 completed."

View File

@@ -0,0 +1,3 @@
This service is a one-time script to make sure enabled one-shot/rc
services in Artix can be run automatically on boot. For list of enabled
rc services, run "service list rc".

3
sv/artix-oneshot-rc/finish Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
. /usr/lib/rc/functions
stop_oneshot_services

4
sv/artix-oneshot-rc/run Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. /usr/lib/rc/functions
run_oneshot_services
exec chpst -b artix-oneshot pause