add monitoring scripts
This commit is contained in:
parent
c51e72686e
commit
8c603d6ebd
5 changed files with 87 additions and 0 deletions
15
monitor@.service.j2
Normal file
15
monitor@.service.j2
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Execute Command Service
|
||||
After=network.target
|
||||
Requires=monitor.socket
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart={{ homedir }}/monitor.sh
|
||||
StandardInput=socket
|
||||
StandardOutput=socket
|
||||
TimeoutStopSec=5
|
||||
RuntimeMaxSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue