-
Notifications
You must be signed in to change notification settings - Fork 36
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
Please provide systemd service files #9
Comments
I thought that the current OpenSM spec file supports old daemon management framework SysV (RHEL 6.X) . What distributions are of interest ? |
All recent distributions (Debian, Ubuntu, Fedora, etc) would benefit from a systemd service file. Let's quote lintian for a reasoning:
|
I'm the maintainer for Arch Linux's AUR opensm (and other InfiniBand) packages. (To be clear, AUR packages are maintained by any user who adopts the packages - InfiniBand packages are not part of Arch's official repositories.) When I ran into the problem of no systemd service file, I copied (and gave credit) to the systemd They use this separate script of theirs to allow multiple versions of opensm.service
opensm.launch
I just tried running multiple interfaces for the first time myself, and ran across that their method of giving If you do not want multiple interface support, opensm.launch can be simplified to:
opensm.sysconfig
|
There is no signal 15 failure for Fedora. Please see explanation in this bug page. |
Yeah, I was given bad info about that. At the link from HonggangLI, there's discussion of how it's done so opensm stays running, as it (at least in the past) closes in certain situations like a cable being unplugged. (The link is well worth a read.) If that's still opensm's native behavior, I think it would be nice if it was changed. I don't think anyone would want it to close in situations like that. It's of course different, but that would be like having dhcpd close whenever a client unplugged. |
To unify the systemd services for opensm from the different distributions, add `opensm.service` and `opensm@.service`. The `opensm@.service` starts opensm on a given port. `opensm.service` starts opensm for all available ports via the `opensm@.service`. fixes linux-rdma#9 Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
It would be nice if opensm comes with systemd service files. Otherwise each distribution would have to create its own service files and might diverge.
The text was updated successfully, but these errors were encountered: