Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No systemd service file in 22.05 rpm package #3816

Closed
nerijus opened this issue May 17, 2022 · 6 comments
Closed

No systemd service file in 22.05 rpm package #3816

nerijus opened this issue May 17, 2022 · 6 comments
Assignees
Labels
Download:GitHub Releases Package downloaded from the GitHub Releases page Packaging:RPM rpm package

Comments

@nerijus
Copy link

nerijus commented May 17, 2022

ejabberd-21.07-0.x86_64.rpm has systemd service file /opt/ejabberd-21.07/bin/ejabberd.service, but ejabberd-22.05-1.x86_64.rpm no longer has it. I see it was changed in #3781 and apparently systemd service file is generated by ejabberd-2x.xx-1-linux-x64.run file. It would be nice to have it back in rpm package as well.

@weiss weiss self-assigned this May 18, 2022
@weiss
Copy link
Member

weiss commented May 18, 2022

The idea was to have the RPM package install the service unit in the proper location. Seems it's missing from the package indeed, I'll look into it.

@weiss
Copy link
Member

weiss commented May 18, 2022

You could test this updated package if you like:

https://ejabberd.messaging.one/download/package/ejabberd-22.05-2.x86_64.rpm

You'd enable and start the systemd service like this:

sudo systemctl --now enable ejabberd

@weiss weiss closed this as completed in cac31f9 May 18, 2022
@badlop badlop added Packaging:RPM rpm package Download:GitHub Releases Package downloaded from the GitHub Releases page labels May 18, 2022
@badlop badlop added this to the ejabberd 22.xx milestone May 18, 2022
@jeroenhabets
Copy link

P.S. I just installed ejabberd_22.05-2_amd64.deb and also noticed the ejabberd.service was gone. (I created it manually using the template).

@weiss weiss reopened this May 22, 2022
@weiss
Copy link
Member

weiss commented May 22, 2022

I just installed ejabberd_22.05-2_amd64.deb and also noticed the ejabberd.service was gone.

That would be another, unrelated bug. I wouldn't have expected that, as I tested several installations of the DEB package. Would've expected the systemd service to be auto-started on installation.

I'll see whether I can reproduce the problem, but won't be able to test things before Wednesday.

@jeroenhabets
Copy link

@weiss perhaps because I had manually created a softlink in /etc/systemd/system (systemd.service -> /opt/ejabberd-21.12/bin/systemd.service). I do not want to cause you to waste your time trying to reproduce it.

@weiss
Copy link
Member

weiss commented May 25, 2022

Ah, yes, I guess you just need to remove that softlink, then.

To double-check, I've installed ejabberd_22.05-2_amd64.deb on a fresh Debian system and ended up with a /lib/systemd/system/ejabberd.service unit. systemctl status ejabberd is happy.

I'll close this issue, please open a new one if you still run into problems.

@weiss weiss closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Download:GitHub Releases Package downloaded from the GitHub Releases page Packaging:RPM rpm package
Projects
None yet
Development

No branches or pull requests

4 participants