User Tools

Site Tools


mbbsemu:configuration:systemd_service

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mbbsemu:configuration:systemd_service [2020/11/14 20:21] – created tudaymbbsemu:configuration:systemd_service [2023/11/27 22:06] (current) enusbaum
Line 1: Line 1:
 +<markdown>
 +# systemd Service
  
 +The below service forks the MBBSEmu process into a screen session and is a cheap way to daemonize
 +
 +Save to: `/etc/systemd/system/mbbs.service`
 +
 +```
 +[Unit]
 +Description=MBBSEmu
 +After=syslog.target network.target
 +
 +[Service]
 +Type=forking
 +ExecStart=/usr/bin/screen -d -m -S mbbs ./MBBSEmu -CLI -C games.json
 +User=<user>
 +Group=<group>
 +WorkingDirectory=/doors/mbbsemu
 +
 +[Install]
 +WantedBy=multi-user.target
 +```
 +
 +Thanks to [@ryanfantus](https://github.com/ryanfantus)!
 +</markdown>