diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e101f0b --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +install-debug: + @sudo systemctl --runtime link sfsmcd/sfsmc-debug@.service +.PHONY: install-debug + +journalctl: + @journalctl -efSnow -usfsmc-debug@$$(cd ..; pwd) -ocat +.PHONY: journalctl + +start: + @sudo systemctl start sfsmc-debug@$$(cd ..; pwd) +.PHONY: start + +stop: + @sudo systemctl stop sfsmc-debug@$$(cd ..; pwd) +.PHONY: stop + +restart: + @sudo systemctl restart sfsmc-debug@$$(cd ..; pwd) +.PHONY: restart \ No newline at end of file diff --git a/sfsmcd/org.ddnss.sfs.mc.conf b/sfsmcd/org.ddnss.sfs.mc.conf new file mode 100644 index 0000000..917501f --- /dev/null +++ b/sfsmcd/org.ddnss.sfs.mc.conf @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/sfsmcd/sfsmc-debug@.service b/sfsmcd/sfsmc-debug@.service new file mode 100644 index 0000000..808c033 --- /dev/null +++ b/sfsmcd/sfsmc-debug@.service @@ -0,0 +1,9 @@ +[Unit] +Description=SFS Minecraft server (Debug) +After=network.target + +[Service] +Type=dbus +BusName=org.ddnss.sfs.mc +ExecStart=%I/sfs-mc/target/debug/sfsmcd +User=root \ No newline at end of file