~yerinalexey/gobin

ref: b2a76c116b9eab56dc25b183d87a639f87e40195 gobin/contrib/systemd/gobin.service -rw-r--r-- 515 bytes
b2a76c11 — Alexey Yerin chore: add SystemD unit 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# This unit runs gobin as a system service. It requires gobin to be
# available in your PATH (/usr/bin, /usr/local/bin, etc). To place it
# there use:
# sudo install ./gobin /usr/local/bin

[Unit]
Description=Simple self-hosted service for sharing text snippets
Requires=network.target

[Service]
Type=simple
ExecStart=gobin
Environment="TEMPLATE_ROOT=/usr/share/gobin/templates"
Environment="STATIC_ROOT=/usr/share/gobin/static"

[Install]
WantedBy=multi-user.target