Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
c2007499ce | |||
8eec042261 | |||
8f195fc564 |
2
Makefile
2
Makefile
@@ -26,7 +26,7 @@ STAGES = \
|
||||
script/3 \
|
||||
script/ctrlaltdel
|
||||
|
||||
RCLOCAL = script/rc.local
|
||||
RCLOCAL = script/rc.local script/rc.shutdown
|
||||
|
||||
AGETTY_CONSOLE = $(wildcard sv/agetty-console/*)
|
||||
AGETTY_CONSOLE_S = supervise.agetty-console
|
||||
|
@@ -8,4 +8,4 @@ run_sysinit
|
||||
|
||||
install -m100 /dev/null @RUNDIR@/stopit
|
||||
|
||||
status "Initialization complete"
|
||||
msg_ok "Initialization complete"
|
||||
|
12
script/3.in
12
script/3.in
@@ -4,10 +4,12 @@ PATH=/usr/bin:/usr/sbin
|
||||
|
||||
. @RCLIBDIR@/functions
|
||||
|
||||
stat_busy "Stop services ..." sv force-stop @RUNDIR@/service/*
|
||||
stat_done
|
||||
stat_busy "Exit services ..." sv exit @RUNDIR@/service/*
|
||||
stat_done
|
||||
msg "Stopping services"
|
||||
sv force-stop @RUNDIR@/service/*
|
||||
msg "Exiting services"
|
||||
sv exit @RUNDIR@/service/*
|
||||
|
||||
[ -x @RCDIR@/rc.shutdown ] && @RCDIR@/rc.shutdown
|
||||
|
||||
if [ -e @RUNDIR@/reboot ]; then
|
||||
chmod 100 @RUNDIR@/reboot
|
||||
@@ -19,4 +21,4 @@ if [ -e @RUNDIR@/reboot ]; then
|
||||
[[ -x $(type -P kexec) ]] && kexec -e &>/dev/null
|
||||
fi
|
||||
|
||||
status "Stage 3 completed."
|
||||
msg_ok "Stage 3 completed."
|
||||
|
4
script/rc.shutdown.in
Normal file
4
script/rc.shutdown.in
Normal file
@@ -0,0 +1,4 @@
|
||||
# @RCDIR@/rc.shutdown -- rc.shutdown for Artix Linux
|
||||
#
|
||||
# Enter your custom commands here. It will be executed on stage 3
|
||||
# after stopping services.
|
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