Switch to httpd as user, add tmpfiles template file.
This commit is contained in:
parent
dd12d125de
commit
98bdd5fbd0
2
Makefile
2
Makefile
@ -4,7 +4,7 @@ PREFIX ?= /usr/local
|
||||
DIST := COPYING Makefile mtmediasrv.service mtmediasrv.yaml nginx-server.conf readme.md
|
||||
|
||||
PROJECT := mtmediasrv
|
||||
VERSION = 2
|
||||
VERSION = 3
|
||||
BUILD = `git describe --tags --always`
|
||||
|
||||
$(PROJECT): main.go
|
||||
|
2
mtmediasrv.conf
Normal file
2
mtmediasrv.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# create folder for socket location for mtmediasrv
|
||||
d /run/mtmediasrv 0755 httpd httpd -
|
@ -2,11 +2,9 @@
|
||||
Description=Minetest Media server
|
||||
|
||||
[Service]
|
||||
User=www
|
||||
User=httpd
|
||||
Type=simple
|
||||
Restart=always
|
||||
ExecStartPre=+/usr/bin/mkdir -p /run/mtmediasrv
|
||||
ExecStartPre=+/usr/bin/chown www /run/mtmediasrv
|
||||
WorkingDirectory=/var/empty
|
||||
ExecStart=/usr/local/bin/mtmediasrv
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user