aboutsummarylogtreecommitdiffstats
path: root/dis4irc.service
blob: a299b2486e83e29dcf0fd3205f6abf36de59efef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description="A modern Discord <-> IRC bridge"
# Wait until network is *fully* online
#
# See aur issue #2
After=network.target network-online.target nss-lookup.target

[Service]
Type=simple
ExecStart=/usr/bin/java -jar "/usr/share/java/dis4irc/Dis4IRC.jar" --config "/etc/dis4irc/config.hocon"
User=dis4irc
WorkingDirectory=/var/lib/dis4irc
# Give a little time to shutdown
TimeoutStopSec=30s
# NOTE: Dis4IRC handles SIGTERM correctly and cleanly exists (saving any data in the process)
#
# See here: https://github.com/zachbr/Dis4IRC/blob/v1.4.2/src/main/kotlin/io/zachbr/dis4irc/Dis4IRC.kt#L110-L117
# 
# As such, if it exits with a SIGTERM, then we consider it a success..
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target