ergo/files/ergo.service
author Luke Hoersten <luke@hoersten.org>
Mon, 03 Apr 2023 13:20:18 -0500
changeset 211 9e2b2cc6ccf1
parent 170 a20a6d03747f
permissions -rw-r--r--
Version update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
114
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
170
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
     2
Description=ergo
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
     3
#After=network.target
114
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
# If you are using MySQL for history storage, comment out the above line
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
# and uncomment these two instead (you must independently install and configure
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
# MySQL for your system):
170
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
     7
Wants=mysql.service
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
     8
After=network.target mysql.service
114
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
[Service]
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
Type=simple
170
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
    12
User=ergo
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
    13
WorkingDirectory=/var/ergo
a20a6d03747f Updated versions: minecraft, miniflux, pleroma, writefreely, ergo-oragono.
Luke Hoersten <luke@hoersten.org>
parents: 137
diff changeset
    14
ExecStart=/usr/local/bin/ergo run --conf /etc/ergo/config.yaml
114
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
ExecReload=/bin/kill -HUP $MAINPID
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
Restart=on-failure
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
LimitNOFILE=1048576
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
[Install]
34c8632d763d Added oragono role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
WantedBy=multi-user.target