diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-08-12 16:17:10 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-08-12 16:17:10 +0200 |
commit | ba4c6a56040a8dae3f1f93c4900a646dea733853 (patch) | |
tree | c9dba3a30eb4d4bffe564b242fe2b14d10327d2c /debian/vanity@.service | |
parent | finally fix build (diff) |
new package with template units
Diffstat (limited to 'debian/vanity@.service')
-rw-r--r-- | debian/vanity@.service | 17 |
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 |