Giwe minetestserver additional 3 seconds to stop before start to copy files.

Actually i was sure systemd will wait for conflicting service to stop before starting my backup service.
master
AndrejIT 2018-09-22 12:33:46 +03:00
parent b6b91c9280
commit f2bb9b01d0
3 changed files with 3 additions and 2 deletions

View File

@ -11,5 +11,4 @@ Creates backups of world.
# TODO - regularly archive auth.txt file
# TODO - regularly run maintenance scripts
# TODO - rewrite maintenance scripts
# TODO - find and fix problem, when map file is broken
# TODO - maybe additionally do "online" backup: https://sqlite.org/backup.html

View File

@ -1,6 +1,7 @@
[Unit]
Description=Backup minetest server
After=local-fs.target
Conflicts=minetestsave.service
[Service]
Type=oneshot

View File

@ -6,5 +6,6 @@ Conflicts=minetestserver.service
[Service]
Type=oneshot
ExecStartPre=/bin/sleep 3
ExecStart=/usr/local/bin/minetestserver.sh save
ExecStopPost=/bin/systemctl start minetestserver.service