mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-03-19 10:50:18 +00:00
Sets how often to save ZNC config file
This commit is contained in:
6
roles/shell/files/etc/cron.hourly/znc_saveconfig.sh
Normal file
6
roles/shell/files/etc/cron.hourly/znc_saveconfig.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/dash
|
||||
|
||||
PID=$(pgrep -u znc znc)
|
||||
|
||||
#Rewrite znc.conf
|
||||
[ $PID ] && kill -s USR1 $PID
|
||||
Reference in New Issue
Block a user