/srv/irclogs.ubuntu.com/2012/04/29/#ubuntu-installer.txt

cjwatsonemdub: You can't start daemons in the context of the installer, so start-stop-daemon is deliberately disabled within in-target.08:05
emdubcjwatson: was this a recent change?  it used to work, just a month or two ago16:56
emdubcjwatson: for quite some time i have been using late_command to install/run puppet to pull down system configuration changes17:01
emdubcjwatson: as part of puppet installing services, it also starts them17:01
emdubcjwatson: this has worked for me for months and months but it seems like something changed fairly recently, like you mentioned, to disable start-stop-daemon17:02
emdubcjwatson: i guess my hope is that folks didn't realize there was a use case for it so it can be put back the way it was?17:03
emdubcjwatson: or i guess, could you confirm that it changed recently?  i suppose it's possible some daemons changed and i just never realized s-s-daemon was that way17:09
emdubcjwatson: sorry if that came off accusatory :)17:09
cjwatsonemdub: not even a slightly recent change in the installer.  perhaps puppet changed how it starts services, or perhaps the packages in question changed.17:49
cjwatsonemdub: I won't change it back - it's integral and necessary to how the installer works.  however, you can always replicate parts of how in-target works yourself without the bits you don't like - for example do the bind-mounting dances yourself and run things inside 'chroot /target'17:51
cjwatsonin fact I'm not sure the installer has ever not worked this way :-)17:51
emdubcjwatson: yeah i suppose it's entirely possible that it's worked this way the whole time but most services don't actually check to make sure the service started as part of its init script, so it never caused a problem17:53
emdubcjwatson: thanks for the feedback :)17:53
cjwatsondoes puppet not simply start the services by way of packages' postinsts, then?17:54
cjwatsonmany of them certainly do check ...17:54
cjwatsonwell, I suppose not if the fake s-s-d returns zero, which I don't recall17:54
emdubafaik puppet's checking of service start/stop is purely derived from the exit level of the init script it calls17:55
cjwatsonyeah, I just misremembered exit status of ssd.REAL17:55
emdubright, so there hasn't been a problem until syslog-ng decided it was going to do its own checking to figure out if it was running17:55
cjwatsonha, right17:55
cjwatsonyes, that would cause a problem17:55
cjwatsonthe installer's already running a syslogd - if syslog-ng can manage to start at all, it'd be by luck anyway17:56
emdubi noticed that17:56
cjwatsonfurthermore, if we let you start daemons in the installer, you might well find that the installer has problems unmounting /target at the end17:56
cjwatsonso, even if you do find a way to set it up, I recommend against it, and would suggest working around syslog-ng's requirement to be started instead17:57
emdubyep, i agree17:57
emdubi've reduced my installer late_command to simply touching /etc/nologin and replacing /etc/rc.local with the commands i was previously running in the installer17:59
emdubthen i have puppet remove /etc/nologin and the modified rc.local as part of its process17:59
cjwatsonwell, that would work, but sounds like the hard way round; but I don't know puppet well enough to have a better suggestion :-)18:00
emdub:)  you run it and it slurps down configuration changes, packages to install, etc.. so i basically need to be able to run it once the system boots (but it runs automatically from cron after that)18:01
emdubi suppose i could have just modified the syslog-ng init script, but i tend to agree with you that perhaps not even trying to do puppet stuff in the installer is the way to go18:03
emdubjust asking for more and more things to break the install process... better to just do it after the installer finishes18:04
cjwatsonyeah, I know the concept (our sysadmins use it too), just not what hooks may be available18:04
cjwatsondon't have their installer configuration to hand just now :)18:04
CIA-32debian-installer: cjwatson * r1682 ubuntu/ (build/config/common debian/changelog debian/rules): Set default suite to quantal.22:23
CIA-32debian-installer: cjwatson * r1683 ubuntu/ (6 files in 2 dirs): Move to 3.2.0-24 kernels.22:24
CIA-32debian-installer: cjwatson * r1684 ubuntu/debian/changelog: releasing version 20101020ubuntu13722:26

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!