Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
openwrt: use procd's automatic crash recovery
Browse files Browse the repository at this point in the history
with default values of 3600s threshold, 5s timeout and 5 respawn retry

See "Service Parameters" at [0]

0: https://openwrt.org/docs/guide-developer/procd-init-scripts#service_parameters
  • Loading branch information
xabolcs authored and badaix committed Apr 12, 2024
1 parent 3b04912 commit 29a5dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions openwrt/snapcast/files/snapclient.init
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ start_service()
procd_set_param command $PROG
procd_append_param command $opts
procd_set_param pidfile $PID_FILE
procd_set_param respawn # use the defaults for respawing crashed process
procd_set_param stderr 1
procd_set_param stdout 1
procd_close_instance
Expand Down
1 change: 1 addition & 0 deletions openwrt/snapcast/files/snapserver.init
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ start_service()
procd_set_param command $PROG
procd_append_param command $opts
procd_set_param pidfile $PID_FILE
procd_set_param respawn # use the defaults for respawing crashed process
procd_set_param stderr 1
procd_set_param stdout 1
procd_close_instance
Expand Down

0 comments on commit 29a5dae

Please sign in to comment.