25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Use the configured user in systemd's ejabberd.service

This commit is contained in:
Badlop 2021-10-06 12:18:08 +02:00
parent 54c23a65db
commit 5f3c8dcca4
2 changed files with 4 additions and 3 deletions

View File

@ -306,7 +306,8 @@ install: copy-files
chmod 755 ejabberd.init chmod 755 ejabberd.init
# #
# Service script # Service script
$(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" ejabberd.service.template \ $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
-e "s*@installuser@*$(INIT_USER)*g" ejabberd.service.template \
> ejabberd.service > ejabberd.service
chmod 644 ejabberd.service chmod 644 ejabberd.service
# #

View File

@ -4,8 +4,8 @@ After=network.target
[Service] [Service]
Type=notify Type=notify
User=ejabberd User=@installuser@
Group=ejabberd Group=@installuser@
LimitNOFILE=65536 LimitNOFILE=65536
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5