voicemngr: fix procd env variables in startup script

This commit is contained in:
Arne Jonsson 2023-02-20 15:22:19 +00:00 committed by Yalu Zhang
parent ec7175267e
commit cdcafdb724

View file

@ -10,8 +10,8 @@ start_service() {
[ "$(db -q get hw.board.hasVoice)" = "1" ] || return
procd_open_instance
procd_set_param env hw_board_hasDect="$(db get hw.board.hasDect)"
procd_set_param env hw_board_VoicePortNames="$(db get hw.board.VoicePortNames)"
procd_set_param env hw_board_hasDect="$(db get hw.board.hasDect)" \
hw_board_VoicePortNames="$(db get hw.board.VoicePortNames)"
procd_set_param command $NAME
procd_set_param respawn "5" "0" "3"
procd_set_param nice -12