This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user