|
@@ -17,9 +17,10 @@ append_arg() {
|
17
|
17
|
|
18
|
18
|
start_instance() {
|
19
|
19
|
local cfg="$1"
|
|
20
|
+ local aux
|
20
|
21
|
|
21
|
|
- config_get_bool disabled "$cfg" 'disabled' '0'
|
22
|
|
- [ "$disabled" = 1 ] && return 1
|
|
22
|
+ config_get_bool aux "$cfg" 'disabled' '0'
|
|
23
|
+ [ "$aux" = 1 ] && return 1
|
23
|
24
|
|
24
|
25
|
procd_open_instance
|
25
|
26
|
|
|
@@ -34,6 +35,9 @@ start_instance() {
|
34
|
35
|
append_arg "$cfg" ao_devicename "--ao_devicename"
|
35
|
36
|
append_arg "$cfg" ao_deviceid "--ao_deviceid"
|
36
|
37
|
|
|
38
|
+ config_get_bool aux "$cfg" 'respawn' '0'
|
|
39
|
+ [ "$aux" = 1 ] && procd_set_param respawn
|
|
40
|
+
|
37
|
41
|
procd_close_instance
|
38
|
42
|
}
|
39
|
43
|
|