diff options
author | Karel Kočí <karel.koci@nic.cz> | 2020-08-04 10:19:23 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2020-08-04 10:19:23 +0200 |
commit | b2f7f1e3f09d532f55fc3e215a81cdd007b634dd (patch) | |
tree | 8847a94b6bbcd21bc96a35a905553e28f7fda96a /sentinel-minipot/files/init | |
parent | 08cf0c0d8eb36dbee9c86717305dea1094394bdd (diff) | |
download | openwrt-personal-pkgs-b2f7f1e3f09d532f55fc3e215a81cdd007b634dd.tar.gz openwrt-personal-pkgs-b2f7f1e3f09d532f55fc3e215a81cdd007b634dd.tar.bz2 openwrt-personal-pkgs-b2f7f1e3f09d532f55fc3e215a81cdd007b634dd.zip |
sentinel-minipot: remove as no longer needed at the moment
Diffstat (limited to 'sentinel-minipot/files/init')
-rwxr-xr-x | sentinel-minipot/files/init | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sentinel-minipot/files/init b/sentinel-minipot/files/init deleted file mode 100755 index c243697..0000000 --- a/sentinel-minipot/files/init +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh /etc/rc.common - -USE_PROCD=1 -START=99 -STOP=10 - - -start_service() { - source /lib/functions/sentinel.sh - source /usr/libexec/sentinel/minipot-defaults.sh - allowed_to_run "minipot" || return 1 - - config_load sentinel - local ftp_port http_port smtp_port telnet_port - config_get ftp_port minipot ftp_port "$DEFAULT_FTP_PORT" - config_get http_port minipot http_port "$DEFAULT_HTTP_PORT" - config_get smtp_port minipot smtp_port "$DEFAULT_SMTP_PORT" - config_get telnet_port minipot telnet_port "$DEFAULT_TELNET_PORT" - - procd_open_instance - procd_set_param command /usr/bin/sentinel-minipot - [ "$ftp_port" = "0" ] || procd_append_param command --ftp="$ftp_port" - [ "$http_port" = "0" ] || procd_append_param command --http="$http_port" - [ "$smtp_port" = "0" ] || procd_append_param command --smtp="$smtp_port" - [ "$telnet_port" = "0" ] || procd_append_param command --telnet="$telnet_port" - procd_set_param respawn 3600 5 5 - # TODO uncomment or replace logging once debug logs are no longer printed - # Otherwise this just spams log a lot. - #procd_set_param stdout 1 - #procd_set_param stderr 1 - procd_set_param file /etc/config/sentinel - procd_close_instance -} |