[10:20] <Varazir> start on <service has run before> 
[10:20] <Varazir> can it be done ? 
[10:21] <Varazir> nvm
[15:26] <SpamapS> Varazir: did you figure out what you needed?
[15:27] <Varazir> SpamapS: I think I solved the problem not exting my script 
[15:27] <Varazir> I added and started htpc to the lightdm.conf file 
[15:27] <Varazir> the orginal htpc.conf file had exit 0 
[15:28] <Varazir> and then lightdm wouldn't start due to the script wasn't running 
[15:30] <SpamapS> ah ok
[17:14] <Varazir> SpamapS: Didn't work
[17:15] <Varazir> for some reason my script do not start 
[17:17] <Varazir> init-checkconf /etc/init/htpc.conf
[17:17] <Varazir> ERROR: failed to ask Upstart to check conf file
[17:25] <Varazir> And I don't get any error msg what I can see
[21:19] <wakko> hi there
[21:21] <wakko> i am lookup for a default set of jobs that does not use rc, does someone knows where i could find that ?
[21:21] <wakko> slookup/looking/
[21:33] <JanC> you mean without sysvinit compatibility?
[21:33] <wakko> yes
[21:33] <JanC> hm, I don't know about any default set like that
[21:34] <JanC> I think it's only used like that in embedded systems
[21:35] <wakko> actually i am trying to bake an embedded system
[21:36] <JanC> I think Palm/HP webOS uses it like that
[21:36] <wakko> thanks for the info
[21:36] <JanC> I'm not sure how Google ChromeOS uses it
[21:39] <wakko> for the moment i am stuck at the runlevel thing
[21:39] <JanC> wakko: maybe also ask on the mailing list
[21:39] <wakko> when i type runlevel it tells me "runlevel:/var/run/utmp: No such file or directory"
[21:39] <JanC> you don't have to use runlevels
[21:39] <wakko> i need to find out what does populate this file :)
[21:41] <wakko> i would like not to use them indeed, but at the same time i'd like to have the reboot command to work
[21:45] <JanC> "reboot --force" reboots the system without any need for runlevels
[21:46] <JanC> but you'll have to make sure everything is topped properly before doing that yourtself
[21:46] <JanC> *yourself
[21:46] <JanC> and *stopped* (sigh)
[21:47] <wakko> i don't understand why reboot is shipped with upstart and still relies on /etc/init.d/rc
[21:47] <wakko> (according to the cookbook)
[21:47] <JanC> there is also a reboot syscall BTW
[21:47] <JanC> wakko: because of the sysvinit compatibility I suppose
[21:48] <JanC> you don't want to reboot before your database that still uses a sysvinit script has written all data to disk, for example  ☺
[21:49] <wakko> i was thinking reboot would send an event to upstart thru dbus, and then upstart would call /etc/init.d/rc using a job 
[21:50] <slangasek> that's correct
[21:50] <JanC> well, that's more or less what it does
[21:50] <slangasek> and then it's the init scripts that finish up tearing everything down, and calling the reboot syscall
[21:50] <JanC> if you don't use --force
[21:51] <slangasek> the 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 processing
[21:51] <JanC> if you don't use the sysvinit compatibility, you'll have to do that syscall yourself (e.g. by calling "reboot --force")
[21:52] <wakko> JanC: 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:53] <JanC> well, you can do the "reboot --force" (or similar another way) from an upstart job, of course
[21:53] <wakko> that would be nice
[21:54] <JanC> I'm sure distros that don't use sysvinit have their own implementation of reboot & shutdown BTW
[21:54] <JanC> e.g. Gentoo & CRUX
[21:54] <wakko> Does Gentoo use upstart ?
[21:55] <JanC> no, (certainly not by default)
[21:55] <JanC> but they don't use sysvinit either
[21:55] <JanC> they have their own init system
[21:55] <wakko> i think it's OpenRc by default
[21:55] <JanC> yes
[21:56] <JanC> which was originally derived from bsd init IIRC, but evolved a lot since
[21:56] <wakko> i think i could keep the runlevel stuff :) so i'll don't have to rewrite them and i can stay with upstart "builtins"
[21:57] <JanC> well, it would be interesting to see upstart working without sysvinit/runlevels/etc.
[21:58] <JanC> but I understand you probably have time constraints about getting this to work  ;)
[21:58] <wakko> the cookbook says reboot does a "runlevel RUNLEVEL=6 PREVLEVEL=2"
[21:58] <wakko> i think i could keep the runlevel logic but skip the rc scripts
[21:59] <JanC> that would probably work
[21:59] <wakko> JanC, slangasek, thanks for your help
[22:00] <JanC> it's more or less what happens if /etc/init.d/* & /etc/rc.local are empty, I suppose  ☺
[22:00] <wakko> :)
[22:01] <wakko> maybe, but i still need to clarify some points so i can tell
[22:02] <wakko> lol it works now...
[22:02] <wakko> i'll definitely write an article or something later
[22:06] <wakko> gn all and thanks again