|
|
@ -13,7 +13,9 @@ validate_rtty_section() { |
|
|
|
'host:host' \ |
|
|
|
'port:port' \ |
|
|
|
'ssl:bool:0' \ |
|
|
|
'insecure:bool:0' \ |
|
|
|
'token:maxlength(32)' \ |
|
|
|
'username:string' \ |
|
|
|
'verbose:bool:0' |
|
|
|
} |
|
|
|
|
|
|
@ -48,7 +50,9 @@ start_rtty() { |
|
|
|
[ -n "$port" ] && procd_append_param command -p "$port" |
|
|
|
[ -n "$description" ] && procd_append_param command -d "$description" |
|
|
|
[ "$ssl" = "1" ] && procd_append_param command -s |
|
|
|
[ "$insecure" = "1" ] && procd_append_param command -x |
|
|
|
[ -n "$token" ] && procd_append_param command -t "$token" |
|
|
|
[ -n "$username" ] && procd_append_param command -f "$username" |
|
|
|
[ "$verbose" = "1" ] && procd_append_param command -v |
|
|
|
procd_set_param respawn |
|
|
|
procd_close_instance |
|
|
|