diff options
Diffstat (limited to 'mc-fbackup.service')
-rw-r--r-- | mc-fbackup.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mc-fbackup.service b/mc-fbackup.service new file mode 100644 index 0000000..a5a52ae --- /dev/null +++ b/mc-fbackup.service @@ -0,0 +1,15 @@ +[Unit] +Description=Force backup of Minecraft Server + +[Service] +Type=simple +User=minecraft +Group=minecraft +ExecStart=/var/minecraft/server.sh fbackup +Restart=on-failure +RestartSec=10s +StartLimitInterval=10min +StartLimitBurst=8 + +[Install] +WantedBy=multi-user.target |