dont i hate how initd respawns anyway. why so Fucking Ass
release / build (push) Successful in 53s

This commit is contained in:
lda
2025-08-31 05:18:32 +07:00 Unverified
parent eeff4ebe1a
commit 1a94cdb32c
7 changed files with 30 additions and 24 deletions
+3 -3
View File
@@ -7,14 +7,14 @@
# Default-Stop:
# Short-Description: Pre-flight Tailscale update
START=50 # Run before Tailscale (typically START~80)
START=50 # Run before Tailscale (typically START~80)
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /bin/sh -c \
'while ! /etc/ldlda_help/update_tailscale.sh; do sleep 5; done'
# procd_set_param respawn 0 0 0
'while ! /etc/ldlda_help/update_tailscale.sh; do sleep 5; done'
procd_set_param respawn 9999 15 1
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
+3 -11
View File
@@ -2,24 +2,16 @@
START=66
USE_PROCD=1
# reboot == new file.
FLAG=/var/wakey_updated.flag
start_service() {
[ -f "$FLAG" ] && return
procd_open_instance
procd_set_param command /bin/sh -c \
'while ! /etc/ldlda_help/update_wakey.sh; do sleep 5; done'
'while ! /etc/ldlda_help/update_wakey.sh; do sleep 5; done'
procd_set_param respawn 9999 15 1
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
stop_service() {
: # no-op
}
post_service() {
touch "$FLAG"
: # no-op
}