diff options
author | Jianhui Zhao <jianhuizhao329@gmail.com> | 2018-02-06 17:20:46 +0800 |
---|---|---|
committer | Jianhui Zhao <jianhuizhao329@gmail.com> | 2018-02-07 17:10:08 +0800 |
commit | 62e4f714f5d1f45f73207f0b3783f4bffcf58fb9 (patch) | |
tree | 65e64612f86928c278822daf264d9b9024f90ccb /utils/rtty/files | |
parent | 9cd7e4dfe4f7c66351cd809c144f638f5aaaa8ee (diff) |
rtty: Update to 3.1.1
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
Diffstat (limited to 'utils/rtty/files')
-rwxr-xr-x | utils/rtty/files/rtty.config | 1 | ||||
-rw-r--r-- | utils/rtty/files/rtty.init | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/utils/rtty/files/rtty.config b/utils/rtty/files/rtty.config index 8e7123a9b..dd8694a0f 100755 --- a/utils/rtty/files/rtty.config +++ b/utils/rtty/files/rtty.config @@ -10,3 +10,4 @@ # option host 'your-server-host' # Server host # option port '5912' # Server Port # option ssl 1 # Whether to use ssl +# option ping 5 # heartbeat interval(second) diff --git a/utils/rtty/files/rtty.init b/utils/rtty/files/rtty.init index ab3ba131d..1c7c6e44d 100644 --- a/utils/rtty/files/rtty.init +++ b/utils/rtty/files/rtty.init @@ -17,7 +17,8 @@ start_rtty() { 'description:maxlength(126)' \ 'host:host' \ 'port:port' \ - 'ssl:bool:0' + 'ssl:bool:0' \ + 'ping:uinteger:5' [ $? -eq 1 ] && { echo "validation failed" >&2 @@ -42,7 +43,7 @@ start_rtty() { } procd_open_instance - procd_set_param command $BIN -h $host -p $port -a + procd_set_param command $BIN -h $host -p $port -a -P $ping [ -n "$ifname" ] && procd_append_param command -i "$ifname" [ -n "$id" ] && procd_append_param command -I "$id" [ -n "$description" ] && procd_append_param command -d "$description" |