Skip to content

Commit

Permalink
Use the configured user in systemd's ejabberd.service
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Oct 21, 2021
1 parent 54c23a6 commit 5f3c8dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile.in
Expand Up @@ -306,7 +306,8 @@ install: copy-files
chmod 755 ejabberd.init
#
# 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
chmod 644 ejabberd.service
#
Expand Down
4 changes: 2 additions & 2 deletions ejabberd.service.template
Expand Up @@ -4,8 +4,8 @@ After=network.target

[Service]
Type=notify
User=ejabberd
Group=ejabberd
User=@installuser@
Group=@installuser@
LimitNOFILE=65536
Restart=on-failure
RestartSec=5
Expand Down

0 comments on commit 5f3c8dc

Please sign in to comment.