summaryrefslogtreecommitdiff
path: root/debian/vanity@.service
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-08-13 16:15:18 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-08-13 16:15:18 +0200
commit6ee370ee359940f86e17a91934dbe0280114eca7 (patch)
tree63051938ff551965582b932e2da0f07026b0fb7f /debian/vanity@.service
parentupgraded to 0.1.3 (diff)
new v0.1 based package
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