Commit d4529506 authored by Connor Cleveland's avatar Connor Cleveland

run service as user:group and in working_dir

parent cac28c10
......@@ -4,6 +4,9 @@
description: "A bungeecord server"
after: "network.target"
type: "simple"
working_dir: "/opt/bungeecord"
service_user: "bungeecord"
service_group: "bungeecord"
command: "/opt/bungeecord/start_bungeecord.bash"
timeout: 0
init_memory: "512M"
......
......@@ -4,6 +4,9 @@ After= {{ after }}
[Service]
Type= {{ type }}
User= {{ service_user }}
Group= {{ service_group }}
WorkingDirectory= {{ working_dir }}
ExecStart= {{ command }}
TimeoutStartSec= {{ timeout }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment