-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
[Unit] | ||
Description=A reverse proxy for minecraft server | ||
After=network.target nss-lookup.target | ||
Documentation=https://github.com/kmcsr/go-liter | ||
Requires=network.target nss-lookup.target | ||
|
||
[Service] | ||
Type=forking | ||
PIDFile=/var/run/litermc.pid | ||
WorkingDirectory=/opt/litermc | ||
ExecStart=/usr/sbin/litermc daemon /var/run/litermc.pid | ||
ExecReload=/usr/sbin/litermc reload /var/run/litermc.pid | ||
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /var/run/litermc.pid | ||
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry TERM/5 --pidfile /var/run/litermc.pid | ||
TimeoutStopSec=10 | ||
KillMode=mixed | ||
Restart=on-failure | ||
RestartSec=5 | ||
RestartSec=10 | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
Alias=litermc.service | ||
Alias=litermc |