ansible/roles/backup/templates/backup.service

18 lines
290 B
SYSTEMD
Raw Normal View History

# vim:ft=systemd
[Unit]
Description=Nightly backup service
After=network-online.target
Wants=network-online.target
StartLimitInterval=600
StartLimitBurst=5
[Service]
Type=oneshot
2025-01-21 15:57:53 -06:00
MemoryMax=512M
ExecStart=/opt/backup.sh
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target