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
parent
b6b91c9280
commit
f2bb9b01d0
|
@ -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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
[Unit]
|
||||
Description=Backup minetest server
|
||||
After=local-fs.target
|
||||
Conflicts=minetestsave.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue