Closed (fixed)
Project:
Provision
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2014 at 12:00 UTC
Updated:
10 Nov 2016 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
helmo commentedfirst draft
Comment #2
helmo commentedTesting this in #2493451-5: Puppet and Debian Jessie
Comment #3
helmo commentedUpdated with the new drush location... and committed.
We might want to do an extra debian package update for this.
Comment #4
gboudrias commentedNot sure how to test patches to debian packages but manually creating the file in your patch seemed to solve the install issue.
Comment #5
gboudrias commentedThis doesn't seem to simply install yet. I've grep'd the repo for systemd and came up empty.
I've looked at the doc and I'm pretty sure we're missing things:
Most importantly, it seems we need to replace "dh $@" with "dh $@ --with=systemd".
I assume this would mess up the init.d setup so we probably need to detect whether systemd is installed. (I would personally just drop init.d support entirely, but I suspect there are use cases I'm not aware of here.)
I have no idea how to test this :)
Comment #6
helmo commentedNot sure what made it work in my previous tests...
Moving to the provision queue as the patch belongs there.
Comment #7
helmo commentedComment #9
helmo commented:( build failed http://ci.aegirproject.org/view/Debian%20dev%20builds/job/D_aegir-debian...
The CI server is wheezy ... lacking build support for this.
Comment #10
helmo commentedI think I tested with a build from my ubuntu dev box before ... guessing that the systemd file was picked up there by default.
Comment #11
helmo commentedAs a work around .. create the file manually as /lib/systemd/system/hosting-queued.service
Comment #12
gboudrias commentedComment #13
gboudrias commentedComment #14
anarcat commentednote that even though Debian jessie switched to systemd, it still supports old-style init.d files, so this shouldn't be blocking anything, IMHO.
Comment #15
gboudrias commentedUnless something's changed, we still have the bug, even though we don't need the file, so maybe we should just remove all references to systemd? I'll try to work in that direction.
Comment #16
gboudrias commentedI... I think it worked! Please test against current HEAD :)
(All I did was remove both systemd mentions and the service file, however I don't feel confident enough in my Debian packaging to commit without someone else testing it.)
Comment #18
gboudrias commentedComment #19
helmo commentedI'm setting this back to needs work as the current patch clearly breaks the debian build process.
Comment #20
gboudrias commentedLet's try to work on this for 3.2.
Comment #21
helmo commentedFor the record...:
On a fresh Debian Jessie:
Comment #22
glenndebacker commentedI'm getting the same error as helmo when doing a fresh install. My devops/linux/Aegir kungfu isn't that great so I dare to ask: is there a solution to work around this problem ?
Or is its better to downgrade to Debian Wheezy for the time being ?
Comment #23
tuxick commentedany news on this, or a workaround so i can continue install?
Comment #24
gboudrias commentedOn Jessie you can just run
apt-get installonce it's failed once. If that doesn't fix it you may need to create the service file manually.Comment #25
helmo commentedWe now have a Jenkins test that fails on this: http://ci.aegirproject.org/job/P_Aegir_Puppet_Module_functional_test_Aeg...
Comment #28
helmo commentedI've committed this again as it shoud go better now that we have #2553221: Build Debian packages in docker container ... but it's not all green yet :(
Comment #29
helmo commentedCurrent status: after install the service is available, but not started at boottime.
Notice the status change from 'disabled' to 'enabled'.
To fix this in the Debian package I think we need to add this to the debian/rules file.
dh_systemd_enable --name=hosting-queuedBut would that break packages on wheezy again?
Comment #31
helmo commentedThis should handle enabling the service ... tested in local vagrant.