bin/server/templates/[email protected]
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Feb 2024 15:41:05 -0600
changeset 230 07f08cc98da0
parent 228 ff776d663062
child 231 e3ebf2a606ea
permissions -rw-r--r--
Added swapfile role.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
228
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=Bin pastebin server bound on port %i
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
After=syslog.target network.target
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
[Service]
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
ExecStart=/usr/local/bin/bin 127.0.0.1:%i --buffer-size 10 --max-paste-size 16kB
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
Restart=always
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
User={{bin_user}}
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
[Install]
ff776d663062 Added pastebin bin role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
WantedBy=multi-user.target