1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00
monitorix_ynh/conf/post_iptable_rules_hook
2018-08-10 12:41:45 +02:00

9 lines
No EOL
266 B
Text

#/bin/bash
if [[ $(systemctl status monitorix.service | grep "Active" | cut -d'(' -f2 | cut -d ')' -f1) = 'running' ]]
then
systemctl stop monitorix.service
sleep 1
pkill -f "monitorix-httpd listening on" || true
systemctl start monitorix.service
fi