mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge with develop and fix merge conflicts
This commit is contained in:
commit
72f4fedcbe
148 changed files with 20005 additions and 2718 deletions
10
bin/unix/evennia-docker-start.sh
Normal file
10
bin/unix/evennia-docker-start.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
# called by the Dockerfile to start the server in docker mode
|
||||
|
||||
# remove leftover .pid files (such as from when dropping the container)
|
||||
rm /usr/src/game/server/*.pid >& /dev/null || true
|
||||
|
||||
# start evennia server; log to server.log but also output to stdout so it can
|
||||
# be viewed with docker-compose logs
|
||||
exec 3>&1; evennia start -l
|
||||
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