summaryrefslogtreecommitdiffstats
path: root/templates/service.tmpl
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2025-12-28 09:21:08 -0800
committerbndw <ben@bdw.to>2025-12-28 09:21:08 -0800
commit13c2f9cffa624fdf498f3b61fab9d809b92e026e (patch)
tree4b25205ccd05e9e887376c10edb2f4069ea1d9d4 /templates/service.tmpl
init
Diffstat (limited to 'templates/service.tmpl')
-rw-r--r--templates/service.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/service.tmpl b/templates/service.tmpl
new file mode 100644
index 0000000..87389f0
--- /dev/null
+++ b/templates/service.tmpl
@@ -0,0 +1,17 @@
1[Unit]
2Description={{.Name}}
3After=network.target
4
5[Service]
6Type=simple
7User={{.User}}
8WorkingDirectory={{.WorkDir}}
9EnvironmentFile={{.EnvFile}}
10ExecStart={{.BinaryPath}} --port={{.Port}}
11Restart=always
12RestartSec=5s
13NoNewPrivileges=true
14PrivateTmp=true
15
16[Install]
17WantedBy=multi-user.target