Compare commits
No commits in common. "fa6c131e9b1ea6358c832b49d4bb77f61af634c4" and "2e8a323210e3e53f500b338c13ff3ad773e5417c" have entirely different histories.
fa6c131e9b
...
2e8a323210
@ -127,7 +127,7 @@ Next you need to find your Telegram Chat ID.
|
|||||||
|
|
||||||
### Service configuration (*nix)
|
### Service configuration (*nix)
|
||||||
|
|
||||||
If you want to get messages when watchdog service is stopped, uncomment following line: ```ExecStopPost=/etc/cai-watchdog/on-stop```
|
If you want to get messages when watchdog service is stopped, uncomment following line: ```ExecStopPost=send-telegram 'ATTENTION! Watchdog is stopped!'``` or ```#ExecStopPost=/usr/local/sbin/cai-watchdog-stopped``` if you want message with exclamation icon (⚠)
|
||||||
|
|
||||||
## User logins monitoring (*nix)
|
## User logins monitoring (*nix)
|
||||||
|
|
||||||
|
|||||||
@ -8,4 +8,4 @@ if [[ -z "$APP_PATH" ]] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
source ${APP_PATH}/inc-icons
|
source ${APP_PATH}/inc-icons
|
||||||
${APP_PATH}/send-telegram "${ICON_INFO} Watchdog is started!"
|
${APP_PATH}/send-telegram "${ICON_INFO} ATTENTION! Watchdog is stopped!"
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
APP_PATH=$(dirname "$0") # relative
|
|
||||||
APP_PATH=$(cd "$APP_PATH" && pwd) # absolutized and normalized
|
|
||||||
if [[ -z "$APP_PATH" ]] ; then
|
|
||||||
# error; for some reason, the path is not accessible
|
|
||||||
# to the script (e.g. permissions re-evaled after suid)
|
|
||||||
APP_PATH="/etc/cai-watchdog"
|
|
||||||
fi
|
|
||||||
|
|
||||||
source ${APP_PATH}/inc-icons
|
|
||||||
${APP_PATH}/send-telegram "${ICON_INFO} Watchdog запущен!"
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
APP_PATH=$(dirname "$0") # relative
|
|
||||||
APP_PATH=$(cd "$APP_PATH" && pwd) # absolutized and normalized
|
|
||||||
if [[ -z "$APP_PATH" ]] ; then
|
|
||||||
# error; for some reason, the path is not accessible
|
|
||||||
# to the script (e.g. permissions re-evaled after suid)
|
|
||||||
APP_PATH="/etc/cai-watchdog"
|
|
||||||
fi
|
|
||||||
|
|
||||||
source ${APP_PATH}/inc-icons
|
|
||||||
${APP_PATH}/send-telegram "${ICON_WARNING} ВНИМАНИЕ! Watchdog остановлен!"
|
|
||||||
@ -7,6 +7,7 @@ Group=www
|
|||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/sbin/cai-watchdog
|
ExecStart=/usr/local/sbin/cai-watchdog
|
||||||
#ExecStopPost=/etc/cai-watchdog/on-stop
|
#ExecStopPost=/etc/cai-watchdog/on-stop
|
||||||
|
#ExecStopPost=send-telegram 'ATTENTION! Watchdog is stopped!'
|
||||||
|
|
||||||
KillMode=control-group
|
KillMode=control-group
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user