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

pkg/kamailio/deb: optimize systemd units #1716

Merged
merged 3 commits into from Nov 8, 2018
Merged

pkg/kamailio/deb: optimize systemd units #1716

merged 3 commits into from Nov 8, 2018

Conversation

kevin-olbrich
Copy link
Contributor

Pre-Submission Checklist

  • Commit message has the format required by CONTRIBUTING guide
  • Commits are split per component (core, individual modules, libs, utils, ...)
  • Each component has a single commit (if not, squash them into one commit)
  • No commits to README files for modules (changes must be done to docbook files
    in doc/ subfolder, the README file is autogenerated)

Type Of Change

  • Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)

Checklist:

  • PR should be backported to stable branches
  • Tested changes locally
  • Related to issue #XXXX (replace XXXX with an open issue number)

Description

Please see conversation on ML for reference:
https://lists.kamailio.org/pipermail/sr-users/2018-November/103668.html

@linuxmaniac
Copy link
Member

can you please follow the commit guidelines using pkg/kamailio/deb as the prefix?

Units that strictly require a configured network connection should pull in network-online.target (via a Wants= type dependency) and order themselves after it. This target unit is intended to pull in a service that delays further execution until the network is sufficiently set up. What precisely this requires is left to the implementation of the network managing service.

https://www.freedesktop.org/software/systemd/man/systemd.special.html
https://lists.kamailio.org/pipermail/sr-users/2018-November/103668.html

Signed-off-by: Kevin Olbrich <ko@sv01.de>
New:
If set to on-failure, the service will be restarted when the process exits with a non-zero exit code, is terminated by a signal (including on core dump, but excluding the aforementioned four signals), when an operation (such as service reload) times out, and when the configured watchdog timeout is triggered.

Old:
If set to on-abort, the service will be restarted only if the service process exits due to an uncaught signal not specified as a clean exit status.

https://www.freedesktop.org/software/systemd/man/systemd.service.html

Signed-off-by: Kevin Olbrich <ko@sv01.de>
@kevin-olbrich kevin-olbrich changed the title Optimize systemd units pkg/kamailio/deb: optimize systemd units Nov 8, 2018
@kevin-olbrich
Copy link
Contributor Author

kevin-olbrich commented Nov 8, 2018

I have now force-pushed the changes and removed the ol/el7 service file from the changes.
Please let me know if that one should be fixed as well in a new PR.

@linuxmaniac
Copy link
Member

@kevin-olbrich push those changes with the proper prefix pkg/kamailio/oracle here too, please

Units that strictly require a configured network connection should pull in network-online.target (via a Wants= type dependency) and order themselves after it. This target unit is intended to pull in a service that delays further execution until the network is sufficiently set up. What precisely this requires is left to the implementation of the network managing service.

https://www.freedesktop.org/software/systemd/man/systemd.special.html
https://lists.kamailio.org/pipermail/sr-users/2018-November/103668.html

Signed-off-by: Kevin Olbrich <ko@sv01.de>
@kevin-olbrich
Copy link
Contributor Author

@kevin-olbrich push those changes with the proper prefix pkg/kamailio/oracle here too, please

Done

@linuxmaniac linuxmaniac merged commit 37c2e5c into kamailio:master Nov 8, 2018
@linuxmaniac
Copy link
Member

Thanks!

@kevin-olbrich kevin-olbrich deleted the kolbrich-optimize-systemd-units branch November 8, 2018 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants