-
Notifications
You must be signed in to change notification settings - Fork 139
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
relocate our systemd service files #2437
Comments
Of note with this issue is that if our rpm package installs it's service files to the preferred:
Local builds, i.e. development builds, can, in-turn, overide the 'system' package systemd files by opting to install in:
directory: https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Unit_files
|
Our project wide use of /etc/systemd/systemd is as follows:
In the cases of:
We are using the correct directories as we are separating our config over that of the associated packages, which are themselves using the "/usr/lib/systemd/system" directive. For our own rockstor* services,
which do not override existing OS services, we should honour the upstream guidance of putting these into "/usr/lib/systemd/system" in order that we, ourselves, can be overridden (customized) via the /etc/systemd/system directory, or it's override specific variations, such as we do to nginx: but named after our own rockstor* services. |
Use initrock.py to move existing non override rockstor services to the preferred location of /usr/lib/systemd/system. There-by allowing for admin override of our own services. Our existing mechanism to update these same service files is then run directly there-after. Includes: - modifying scripts/flash_optimize.py to comply. - modifying system/osi to comply. - added additional clean-up mechanism to remove known legacy service files. Currently only used for the short lived rockstor-ipv6check.service, which was used to remove a previous non upstream default of disabling ipv6. - general code tidies including: -- clean abstraction of systemd paths. -- update string formatting mechanism in flash_optimize.py. -- removal of incompatible/ineffectual tmpfs setup for /tmp --
Without this we create ghost services that are thought to be harmless. N.B. we still have this issue with rockstor-hdparm.service, if drive power/spin-down services were enabled. How-ever in that case there is a Web-UI re-establishment route. Thanks to @FroggyFlox for highlighting this failure.
…vice_files relocate our systemd service files #2437
Closing as: |
Currently, and for the lifetime of the project's use of systemd (the entire lifetime of systemd) we have used the following directory for our rockstor* service files (not including overrides which are considered differently in this regard, see #2436 ):
According to: https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Unit_files
We should instead be using:
This modification is dependant upon the merging of pending pr #2434
and should ease our ability to use official rpm macros to establish and manage our systemd configuration. Further enhancing our package robustness re systemd modifications and our compliance with upstream standards.
The text was updated successfully, but these errors were encountered: