author | Luke Hoersten <luke@hoersten.org> |
Sun, 05 Feb 2023 11:01:26 -0600 | |
changeset 208 | 88a7fee5effe |
parent 170 | a20a6d03747f |
permissions | -rw-r--r-- |
114 | 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 | 4 |
# If you are using MySQL for history storage, comment out the above line |
5 |
# and uncomment these two instead (you must independently install and configure |
|
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 | 9 |
|
10 |
[Service] |
|
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 | 15 |
ExecReload=/bin/kill -HUP $MAINPID |
16 |
Restart=on-failure |
|
17 |
LimitNOFILE=1048576 |
|
18 |
||
19 |
[Install] |
|
20 |
WantedBy=multi-user.target |