/srv/irclogs.ubuntu.com/2012/12/16/#upstart.txt

Varazirstart on <service has run before> 10:20
Varazircan it be done ? 10:20
Varazirnvm10:21
SpamapSVarazir: did you figure out what you needed?15:26
VarazirSpamapS: I think I solved the problem not exting my script 15:27
VarazirI added and started htpc to the lightdm.conf file 15:27
Varazirthe orginal htpc.conf file had exit 0 15:27
Varazirand then lightdm wouldn't start due to the script wasn't running 15:28
SpamapSah ok15:30
VarazirSpamapS: Didn't work17:14
Varazirfor some reason my script do not start 17:15
Varazirinit-checkconf /etc/init/htpc.conf17:17
VarazirERROR: failed to ask Upstart to check conf file17:17
VarazirAnd I don't get any error msg what I can see17:25
wakkohi there21:19
wakkoi am lookup for a default set of jobs that does not use rc, does someone knows where i could find that ?21:21
wakkoslookup/looking/21:21
JanCyou mean without sysvinit compatibility?21:33
wakkoyes21:33
JanChm, I don't know about any default set like that21:33
JanCI think it's only used like that in embedded systems21:34
wakkoactually i am trying to bake an embedded system21:35
JanCI think Palm/HP webOS uses it like that21:36
wakkothanks for the info21:36
JanCI'm not sure how Google ChromeOS uses it21:36
wakkofor the moment i am stuck at the runlevel thing21:39
JanCwakko: maybe also ask on the mailing list21:39
wakkowhen i type runlevel it tells me "runlevel:/var/run/utmp: No such file or directory"21:39
JanCyou don't have to use runlevels21:39
wakkoi need to find out what does populate this file :)21:39
wakkoi would like not to use them indeed, but at the same time i'd like to have the reboot command to work21:41
JanC"reboot --force" reboots the system without any need for runlevels21:45
JanCbut you'll have to make sure everything is topped properly before doing that yourtself21:46
JanC*yourself21:46
JanCand *stopped* (sigh)21:46
wakkoi don't understand why reboot is shipped with upstart and still relies on /etc/init.d/rc21:47
wakko(according to the cookbook)21:47
JanCthere is also a reboot syscall BTW21:47
JanCwakko: because of the sysvinit compatibility I suppose21:47
JanCyou don't want to reboot before your database that still uses a sysvinit script has written all data to disk, for example  ☺21:48
wakkoi was thinking reboot would send an event to upstart thru dbus, and then upstart would call /etc/init.d/rc using a job 21:49
slangasekthat's correct21:50
JanCwell, that's more or less what it does21:50
slangasekand then it's the init scripts that finish up tearing everything down, and calling the reboot syscall21:50
JanCif you don't use --force21:50
slangasekthe reason for this is that event based systems make it much easier to respond to events quickly (on startup or shutdown or anywhere in between), but they make it *harder* to know when you're actually done processing21:51
JanCif you don't use the sysvinit compatibility, you'll have to do that syscall yourself (e.g. by calling "reboot --force")21:51
wakkoJanC: i cannot use the reboot command without --force, so upstart still get a "reboot event" turns off all deamons and finally do a reboot --force ?21:52
JanCwell, you can do the "reboot --force" (or similar another way) from an upstart job, of course21:53
wakkothat would be nice21:53
JanCI'm sure distros that don't use sysvinit have their own implementation of reboot & shutdown BTW21:54
JanCe.g. Gentoo & CRUX21:54
wakkoDoes Gentoo use upstart ?21:54
JanCno, (certainly not by default)21:55
JanCbut they don't use sysvinit either21:55
JanCthey have their own init system21:55
wakkoi think it's OpenRc by default21:55
JanCyes21:55
JanCwhich was originally derived from bsd init IIRC, but evolved a lot since21:56
wakkoi think i could keep the runlevel stuff :) so i'll don't have to rewrite them and i can stay with upstart "builtins"21:56
JanCwell, it would be interesting to see upstart working without sysvinit/runlevels/etc.21:57
JanCbut I understand you probably have time constraints about getting this to work  ;)21:58
wakkothe cookbook says reboot does a "runlevel RUNLEVEL=6 PREVLEVEL=2"21:58
wakkoi think i could keep the runlevel logic but skip the rc scripts21:58
JanCthat would probably work21:59
wakkoJanC, slangasek, thanks for your help21:59
JanCit's more or less what happens if /etc/init.d/* & /etc/rc.local are empty, I suppose  ☺22:00
wakko:)22:00
wakkomaybe, but i still need to clarify some points so i can tell22:01
wakkolol it works now...22:02
wakkoi'll definitely write an article or something later22:02
wakkogn all and thanks again22:06

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