Verified Commit b54f6b0c authored by Florian Pritz's avatar Florian Pritz
Browse files

nginx-zabbix: Let systemd restart us on SIGPIPE



For some reason tail behaves strangely and the code that should trap the
PIPE signal doesn't seem to do that. Let it die for now to maybe better
see what happens.
Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 4b9233fd
......@@ -17,7 +17,7 @@ my @nginx_log_file_paths = glob("/var/log/nginx/*-access.log /var/log/nginx/*/ac
@nginx_log_file_paths = ("./test-access.log") if $devmode;
$SIG{PIPE} = 'IGNORE';
#$SIG{PIPE} = 'IGNORE';
sub trim {
my $str = shift;
......
......@@ -4,6 +4,7 @@ After=nginx.service
[Service]
ExecStart=/usr/local/bin/nginx-zabbix.pl
Restart=on-failure
[Install]
WantedBy=multi-user.target
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment