-
Notifications
You must be signed in to change notification settings - Fork 148
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
Do not start foreman.service or foreman.socket on package install #5900
Do not start foreman.service or foreman.socket on package install #5900
Conversation
After the build has finished, you add your repo from https://stagingdeb.theforeman.org/ to the system. This is on top of the regular nightly builds. The README on top of it should be fairly self-explanatory, but they live in |
7d1eeb8
to
f509c09
Compare
@@ -33,9 +33,10 @@ build: | |||
dh $@ --with=systemd | |||
|
|||
override_dh_installinit: | |||
dh_installinit | |||
dh_installinit --only-scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this to stop foreman.service from being created during apt-get install foreman
, however, I wondered more broadly if this should be dropped all together in favor of systemd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, technically, Debian still supports non-systemd systems, so if that package would go into Debian proper, that'd be a bug.
Given we don't aim for that, we could say we only support systemd systems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, dh_installinit
is still responsible for also copying the foreman.service
files etc, so this line can't be dropped completely yet. But at some point we will be able to. (Needs to bump some other places to make dh_systemd_*
take over the copying)
2d92674
to
d34ad10
Compare
d34ad10
to
ce74dc1
Compare
Working now, after
This puts it in alignment with RPM based installation and prevents some weirdness that can happen where if you install |
Note you can also use |
Is this PR then the right time to drop https://github.com/theforeman/foreman-packaging/blob/deb/develop/debian/buster/foreman/foreman.init (and https://github.com/theforeman/foreman-packaging/blob/deb/develop/debian/buster/foreman/foreman.default)? would require some further cleanup like we did for dynflow: foreman-packaging/debian/buster/foreman/foreman.preinst Lines 15 to 18 in a1da82f
but at least it would mean we don't actually ship an init script that we don't support at all anymore |
packaging wise this looks correct to me |
Can I do the drop of initscript separately to reduce potential issues? I can do a PR for it now. I'd like to, if this change is approved, get this in so I can continue finishing up theforeman/puppet-foreman#883 |
Oh yeah, certainly! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from a debian packaging perspective, this looks correct so ACK
I assume you tested this that it actually does what you need in your setup.
To the best of my ability I tested this, this at least brings this into alignment with RPM which is a win |
Warning: I do not know exactly if I am doing this right to start, or how to test this without trying to get a test build from the PR process like I would get a scratch build with RPM.