aboutsummaryrefslogtreecommitdiff
path: root/systemd/go-import-redirect.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/go-import-redirect.service')
-rw-r--r--systemd/go-import-redirect.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/systemd/go-import-redirect.service b/systemd/go-import-redirect.service
new file mode 100644
index 0000000..0691753
--- /dev/null
+++ b/systemd/go-import-redirect.service
@@ -0,0 +1,16 @@
+# Copyright (c) 2020, GrĂ©goire DuchĂȘne <gduchene@awhk.org>
+#
+# Use of this file is governed by the ISC license that can be found in
+# the LICENSE file.
+
+[Install]
+ WantedBy=multi-user.target
+
+[Service]
+ Environment=ADDR=%t/go-import-redirect/socket
+ ExecStart=go-import-redirect
+ DynamicUser=true
+ RuntimeDirectory=go-import-redirect
+
+[Unit]
+ Description=go-import-redirect