summaryrefslogtreecommitdiff
path: root/debian/vanity@.service
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-08-12 16:17:10 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-08-12 16:17:10 +0200
commitba4c6a56040a8dae3f1f93c4900a646dea733853 (patch)
treec9dba3a30eb4d4bffe564b242fe2b14d10327d2c /debian/vanity@.service
parentfinally fix build (diff)
new package with template units
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