checkPort
This commit is contained in:
parent
27ee15522b
commit
5d00332616
20
systemdConfs/common/checkPort.service
Normal file
20
systemdConfs/common/checkPort.service
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=restartPort
|
||||||
|
After=network.target auditd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
SyslogIdentifier=checkPort
|
||||||
|
SyslogFacility=local0
|
||||||
|
ExecStartPre=/bin/bash -c "/home/ubuntu/data/shell/autoDeploy/checkPort.sh localhost 53 'systemctl restart dnsmasq.service'"
|
||||||
|
ExecStart=/bin/bash -c "echo 'checkPort done'"
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=300
|
||||||
|
TimeoutSec=255
|
||||||
|
RestartPreventExitStatus=255
|
9
systemdConfs/common/checkPort.timer
Normal file
9
systemdConfs/common/checkPort.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=checkPort mins run
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*:0/3
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user