aboutsummarylogtreecommitdiffstats
path: root/velocity.service
diff options
context:
space:
mode:
authorDāvis Mosāns2022-03-05 00:27:38 +0200
committerDāvis Mosāns2022-03-05 00:27:38 +0200
commite891fd4445ac0f3913bd49ee3438acfaf4d370f7 (patch)
tree7333bc2a058124ab5944cb17a0bdf16de66dafc6 /velocity.service
downloadaur-e891fd4445ac0f3913bd49ee3438acfaf4d370f7.tar.gz
First release
Diffstat (limited to 'velocity.service')
-rw-r--r--velocity.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/velocity.service b/velocity.service
new file mode 100644
index 000000000000..0b40a77bd3c2
--- /dev/null
+++ b/velocity.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Velocity - Minecraft proxy
+Wants=network.target velocity.socket
+After=network.target
+
+[Service]
+User=velocity
+Group=velocity
+WorkingDirectory=/srv/velocity
+StandardInput=socket
+StandardOutput=journal
+StandardError=journal
+ExecStart=/usr/bin/paper-velocity
+Restart=on-failure
+RestartSec=15s
+
+[Install]
+Also=velocity.socket
+