summaryrefslogtreecommitdiff
path: root/debian/vanity@.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/vanity@.service')
-rw-r--r--debian/vanity@.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/vanity@.service b/debian/vanity@.service
new file mode 100644
index 0000000..cb6e2a2
--- /dev/null
+++ b/debian/vanity@.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=make go packages gettable (%I)
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/vanity/%i.conf
+ExecStart=/usr/bin/vanity -addr=${VANITY_ADDR} -vanity-root=${VANITY_ROOT} -repo-root=${VANITY_REPO_ROOT}
+User=vanity
+Group=vanity
+Restart=on-failure
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=full
+ProtectHome=yes
+
+[Install]
+WantedBy=multi-user.target