mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add a systemd unit file using the latest "foreground portal" options
This commit is contained in:
parent
5d2e30cf2a
commit
ac8e125106
1 changed files with 34 additions and 0 deletions
34
bin/unix/evennia.service
Normal file
34
bin/unix/evennia.service
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Evennia systemd unit script
|
||||
#
|
||||
# Copy this to /usr/lib/systemd/system/ and Edit the paths to match your game.
|
||||
#
|
||||
# Then, register with systemd using:
|
||||
#
|
||||
# sudo systemctl daemon-reload
|
||||
# sudo systemctl enable evennia.service
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Evennia Server
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
#
|
||||
# Change this to the user the game should run as.
|
||||
# Don't run this as root. Please, I beg you.
|
||||
#
|
||||
User=your-user
|
||||
|
||||
#
|
||||
# The command to start Evennia as a Systemd service. NOTE: These must be absolute paths.
|
||||
# Replace /your/path/to with whatever is appropriate.
|
||||
#
|
||||
ExecStart=/your/path/to/pyenv/bin/python /your/path/to/evennia/bin/unix/evennia ipstart --gamedir /your/path/to/mygame
|
||||
|
||||
# restart on all failures, wait 3 seconds before doing so.
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue