mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
f92db1b78c
- Update config from upstream - Use Jinja for config file - Dynamically generate config file depending of the auto detected system configuration - Remove dependancy of mysql as it's not needed - Automatically monitor mysql, postgresql, memcached, redis, php pool v>=8.0, fail2ban, mail, partition and network - Add some config parameter in config panel to make easy to change values - Configure alert system (can be enabled by config panel) - Fix small issue linked to previous packaging v2
9 lines
263 B
Text
9 lines
263 B
Text
#/bin/bash
|
|
|
|
if [[ $(systemctl status __APP__.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 __APP__.service
|
|
fi
|