Commit 285b561f authored by Andrew Price's avatar Andrew Price

Improve mw.service

- Run as mw:mw
- Make systemd create and cleanup /var/run/mw for us
- Correct the path to mwserv
parent d881fc86
......@@ -3,9 +3,10 @@ Description=Milliways server
After=network.target
[Service]
ExecStartPre=-/bin/mkdir /var/run/mw
ExecStartPre=/bin/chown -R mw:mw /var/run/mw
ExecStart=/usr/bin/mwserv --foreground --port 9999
User=mw
Group=mw
RuntimeDirectory=mw
ExecStart=/usr/lib/mw/mwserv --foreground --port 9999
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment