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:
parent
54c23a65db
commit
5f3c8dcca4
@ -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
|
||||||
#
|
#
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user