Modify ansible-pull and backup services to only run when connected to the internet
This commit is contained in:
parent
c3743ee5a5
commit
abcfaea0a5
@ -3,6 +3,8 @@
|
||||
Description=Ansible pull service
|
||||
StartLimitIntervalSec=3600
|
||||
StartLimitBurst=5
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
User=ansible
|
||||
|
@ -1,6 +1,8 @@
|
||||
# vim:ft=systemd
|
||||
[Unit]
|
||||
Description=Nightly backup service
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
MemoryMax=256M
|
||||
|
Loading…
Reference in New Issue
Block a user