Compare commits
1 Commits
20200905-2
...
new-rc
Author | SHA1 | Date | |
---|---|---|---|
c2007499ce |
@@ -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"
|
||||||
|
@@ -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."
|
||||||
|
3
sv/artix-oneshot-rc/README
Normal file
3
sv/artix-oneshot-rc/README
Normal 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
3
sv/artix-oneshot-rc/finish
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. /usr/lib/rc/functions
|
||||||
|
stop_oneshot_services
|
4
sv/artix-oneshot-rc/run
Executable file
4
sv/artix-oneshot-rc/run
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. /usr/lib/rc/functions
|
||||||
|
run_oneshot_services
|
||||||
|
exec chpst -b artix-oneshot pause
|
Reference in New Issue
Block a user