diff options
Diffstat (limited to 'roles/install_monitoring/files')
3 files changed, 67 insertions, 0 deletions
diff --git a/roles/install_monitoring/files/ffmyk-influx/daemon.sh b/roles/install_monitoring/files/ffmyk-influx/daemon.sh new file mode 100755 index 0000000..1cc5a8d --- /dev/null +++ b/roles/install_monitoring/files/ffmyk-influx/daemon.sh @@ -0,0 +1,8 @@ +#!/bin/bash +cd /opt/ffmyk-influx +while : ;do + php -c ./php.ini -f dhcp.php + php -c ./php.ini -f traffic.php + php -c ./php.ini -f fastd.php + sleep 15 +done diff --git a/roles/install_monitoring/files/ffmyk-influx/ffmyk-influx.service b/roles/install_monitoring/files/ffmyk-influx/ffmyk-influx.service new file mode 100644 index 0000000..3949c94 --- /dev/null +++ b/roles/install_monitoring/files/ffmyk-influx/ffmyk-influx.service @@ -0,0 +1,10 @@ +[Unit] + +[Service] +ExecStart=/opt/ffmyk-influx/daemon.sh +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target + diff --git a/roles/install_monitoring/files/ffmyk-influx/php.ini b/roles/install_monitoring/files/ffmyk-influx/php.ini new file mode 100644 index 0000000..988b1c2 --- /dev/null +++ b/roles/install_monitoring/files/ffmyk-influx/php.ini @@ -0,0 +1,49 @@ +[PHP] +engine = On +short_open_tag = Off +precision = 14 +output_buffering = 4096 +zlib.output_compression = Off +implicit_flush = Off +unserialize_callback_func = +serialize_precision = 17 +zend.enable_gc = On +expose_php = On +max_execution_time = 30 +max_input_time = 60 +memory_limit = 128M +error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT +display_errors = Off +display_startup_errors = Off +log_errors = On +log_errors_max_len = 1024 +ignore_repeated_errors = Off +ignore_repeated_source = Off +report_memleaks = On +track_errors = Off +html_errors = Off +variables_order = "GPCS" +request_order = "GP" +register_argc_argv = Off +auto_globals_jit = On +post_max_size = 8M +auto_prepend_file = +auto_append_file = +default_mimetype = "text/html" +default_charset = "UTF-8" +doc_root = +user_dir = +extension_dir = "/usr/lib/php/modules/" +enable_dl = Off +file_uploads = On +upload_max_filesize = 2M +max_file_uploads = 20 +allow_url_fopen = On +allow_url_include = Off +default_socket_timeout = 60 +extension=curl.so +extension=sockets.so +extension=zip.so +[CLI Server] +cli_server.color = On + |