/srv/irclogs.ubuntu.com/2006/11/09/#upstart.txt

=== Amaranth [i=travis@ubuntu/member/amaranth] has joined #upstart
=== Keybuk [i=scott@conference/ubuntuconf/x-454a6e4fed6913be] has joined #upstart
=== mbiebl [n=michael@e180073004.adsl.alicedsl.de] has joined #upstart
mbieblHas anyone used upstart in combination with selinux?01:02
mbieblI don't use selinux myself, I was just wondering.01:02
ajmitchmbiebl: yes, I have a hacked up patch for that to finish cleaning01:16
mbieblajmitch: cool, was it much effort to add selinux support?01:16
mbieblWill you try to push the patch upstream?01:17
ajmitchnot much effort & yes, of course01:18
mbieblcool01:20
=== Keybuk [i=scott@conference/ubuntuconf/x-57fe57333d405d0d] has joined #upstart
=== Amaranth [i=travis@ubuntu/member/amaranth] has joined #upstart
=== j_ack_ [n=rudi@p508D87DC.dip0.t-ipconnect.de] has joined #upstart
=== Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart
=== johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart
=== juergbi [n=juerg@80-219-26-249.dclient.hispeed.ch] has joined #upstart
=== nibil [n=nibil@adsl-static-3-105.uklinux.net] has joined #upstart
=== jams [n=jams@CPE-72-131-6-174.wi.res.rr.com] has joined #upstart
=== frinov [n=frinov@203.114.50.15] has joined #upstart
frinovhi. trying to figure out where default runlevel is set in edgy. looking thru /etc/event.d03:17
=== Md [i=md@freenode/staff/md] has joined #upstart
=== matteo [n=matteo@desktop.techno-inside.net] has joined #upstart
matteocan upstart handle dependencies?04:41
_ionHe was in a hurry.04:48
AlexExtremeyeah...04:57
AlexExtremeit annoys me when people do that, they don't even give you a chance to answer :/04:58
_ionIt's more amusing than annoying to me. :-)05:01
AlexExtremeheh05:01
=== Keybuk [i=scott@conference/ubuntuconf/x-e3f6237adc4e6cbd] has joined #upstart
=== Fry-kun [n=kostya@h-66-166-233-66.snvacaid.covad.net] has joined #upstart
Fry-kunookay.. so i got the system booting..06:02
Fry-kunturned out that i didn't change enough in the config files - telinit and shutdown need to point to their /usr/local/sbin/ variants06:03
Fry-kuni see no major problems in /var/log/boot06:03
Fry-kunbut i still don't get gdm greeter :(06:04
AlexExtremehold on, i know why :)06:04
Fry-kunif i log into the text terminal and run startx, it works with no problem06:04
AlexExtremeyou have an rc5 file, right?06:04
Fry-kunyes06:04
Keybukdoes "runlevel" say 5 or 2?06:05
AlexExtremeok, hold on06:05
Fry-kunKeybuk: booted with a standard fc5 method right now - will try next time i boot with upstart06:07
AlexExtremeFry-kun: http://pastebin.com/820508 - put that in a event.d/dm06:08
AlexExtremenext time you boot you should get gdm06:08
Keybukoh, does Fedora start X from inittab?06:09
Fry-kunokay, sounds good06:09
AlexExtremeKeybuk: yes, frugalware does too06:10
AlexExtremeit's to get it to respawn if gdm dies06:10
=== madduck [n=madduck@debian/developer/madduck] has left #upstart []
Keybukcool06:12
=== wasabi_ [i=wasabi@ubuntu/member/wasabi] has joined #upstart
wasabi_Keybuk: Your upstart stuff ever going to come up? Want to just pick some time and do it?06:13
wasabi_The scheduler seems to be angry.06:14
Keybukwasabi: I appear to have a free afternoon ;)06:14
Keybukwant to go over the stuff iwj did again06:14
Keybukand then talk about the job state stuff06:14
wasabi_Yeah.06:15
wasabi_My only booking this afternoon is some java stuff at 15:0006:15
wasabi_Anytime after or before is cool.06:15
wasabi_Does ian have a draft of the syntax anywhere?06:16
Keybukhttp://www.chiark.greenend.org.uk/~ijackson/d/upstart.text06:16
Keybukit's complete crack, of course06:16
wasabi_that guy's a nut. but pretty cool.06:16
Keybuksmart, but ... odd06:17
wasabi_like the rest of us.06:17
Fry-kunAlexExtreme: by the way, about that advice from the mailing list (to set PATH to /usr/local/sbin first).. combined with different paths for getty, rc, et.al. in various distros - wouldn't it be easier on the end users if the paths were included from some upstart config file?06:17
AlexExtremeno06:18
AlexExtremethe preferred way would be to have a set of job files that work with different distros (in my opinion, of course)06:18
wasabi_My concern with ian's stuff is it's Very Complicated.06:19
wasabi_Both to implement and for a user to understand.06:20
Keybukyeah06:20
Keybukand I think we can implements ian's stuff with /bin/sh :)06:20
wasabi_Yeah. Heh.06:20
Keybukon ...06:20
Keybukscript06:20
Keybuk ...06:20
Keybukend script06:20
Keybukwould have the same effect06:20
Keybukwe just need an "initctl wait-for"06:20
wasabi_ian: "It must represent any state machine."06:20
wasabi_me: "Why?"06:20
wasabi_I don't think I like the idea of upstart tracking state of things on the system anyways. The idea of a simple event system is appealing.06:21
wasabi_And any knowledge upstart has is out of date.06:21
Keybukindeed06:21
Fry-kunAlex: but /usr/local vs / will still be there, do you want to maintain a copy for each distro for each install version? or make users change 20 files just to start the system?06:22
AlexExtremewell...06:22
AlexExtremeupstart is an init system, it will require some DIY, as with any other init system :)06:23
Fry-kunhaha06:23
Fry-kuni thought ubuntu philosophy was above these issues ;)06:24
AlexExtremewell06:24
AlexExtremeupstart is replacing a core system component :P06:24
Fry-kunthat's true06:24
AlexExtremeanyway don't ask me about the ubuntu philosophy, i'm not even a ubuntu user ;)06:25
Fry-kunbut it's not very hard to make it painless06:25
Fry-kunlol ok06:25
Fry-kunanyway i'll go try to boot up with my new init system06:26
=== Fry-kun [n=kostya@h-66-166-233-66.snvacaid.covad.net] has joined #upstart
Fry-kunyay, it works106:30
Fry-kuntakes a while after i get the tty login, but it boots up fair and square06:30
AlexExtremegreat :)06:31
Fry-kunhope there isn't anything else that doesn't start up by itself06:31
Fry-kun<.<06:31
Fry-kun>.>06:31
Fry-kunnow the main (PITA) task - converting all services to use upstart instead of sysv06:32
Fry-kunis there a set of examples somewhere? maybe even a repository of common services pre-converted06:33
AlexExtremenope06:33
Fry-kundarn06:34
Fry-kunoh well, more fun this way i suppose06:34
Fry-kunoh yeah, it's implied of course.. but to make it explicit: Thank you, Alex!06:36
AlexExtremenp :)06:36
Fry-kunis it just me or did the getting-started doc change from /usr/local to /opt/upstart ?06:39
AlexExtremeyes06:40
Fry-kunoh good, i thought i was losing my mind06:41
Fry-kunso what's the reasoning?06:41
AlexExtremeno idea :)06:42
Fry-kun:D06:43
Fry-kunoh yeah.. so let's say I change half of my services to use upstart instead of sysv -- that means i have to remove their sysv versions (..right? or else they'll try to run 2 copies at once) -- so how do i set up the system to be able to boot using either upstart or sysv (in case upstart fails)?06:52
=== phsdv [n=paul@88.122.35.231] has joined #upstart
=== j_ack [n=rudi@p508D87DC.dip0.t-ipconnect.de] has joined #upstart
=== Amaranth [i=travis@conference/ubuntuconf/x-f405ff1e7b89cab3] has joined #upstart
=== wasabi_ [i=wasabi@ubuntu/member/wasabi] has joined #upstart
=== Amaranth [i=travis@conference/ubuntuconf/x-f405ff1e7b89cab3] has joined #upstart
=== phsdv [n=paul@88.122.35.231] has joined #upstart
=== Keybuk [i=scott@conference/ubuntuconf/x-e3f6237adc4e6cbd] has joined #upstart
=== jams [n=jams@CPE-72-131-6-174.wi.res.rr.com] has joined #upstart
=== juergbi [n=juerg@80-219-26-249.dclient.hispeed.ch] has joined #upstart
=== Plouj [n=Plouj@dsl-207-112-93-197.tor.primus.ca] has joined #upstart
=== tonfa [n=tonfa@footwar.residence.ens-lyon.fr] has joined #upstart
=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart
=== thom [n=thom@195.54.228.42] has joined #upstart
=== ajmitch [n=ajmitch@ubuntu/member/ajmitch] has joined #upstart
=== sladen [i=paul@193.28.45.41] has joined #upstart
=== _ion [i=johan@kiviniemi.name] has joined #upstart
=== AlexExtreme [n=AlexExtr@frugalware/developer/AlexExtreme] has joined #upstart
=== crazy [n=crazy@frugalware/developer/crazy] has joined #upstart
=== wasabi [n=wasabi@ubuntu/member/wasabi] has joined #upstart
=== jvtm [i=jvtm@atlantis.spoon.fi] has joined #upstart
=== Artanicus [i=kuitunej@lehtori.cc.tut.fi] has joined #upstart
-ChanServ(ChanServ@services.)- [#ubuntu] Welcome to #ubuntu! Please read the channel topic and consider spending some time on the FAQ mentioned there08:06
-ChanServ(ChanServ@services.)- [#ubuntu-server] Ubuntu Server Discussions (development and support)08:06
!alindeman:*! Hi all, a rotation server just split. It's being removed and we're looking into it further.08:07
!alindeman:*! As always, if you have further questions or issues, please contact an on-duty staff member ( /stats p )08:09
=== mbiebl [n=michael@e180124065.adsl.alicedsl.de] has joined #upstart
=== Amaranth [i=travis@conference/ubuntuconf/x-9b28811cdcc3cf01] has joined #upstart
=== wasabi_ [i=wasabi@ubuntu/member/wasabi] has joined #upstart
=== matteo [n=matteo@desktop.techno-inside.net] has joined #upstart
=== Fry-kun [n=kostya@h-67-100-89-239.snfccasy.covad.net] has joined #upstart
Fry-kunfound another problem - apparently the limited user can't reboot/shutdown08:51
_ionSounds more like a feature.08:51
Fry-kunit complains: "shutdown: /dev/initctl : No such file or directory"08:51
_ionif you mean a non-root user.08:51
Fry-kunlol08:51
Fry-kunyes08:51
_ionThere's sudo, you know?08:52
KeybukFry-kun: wrong shutdown08:52
Fry-kunin fedora, it uses a symbolic link to consolehelper08:52
AlexExtremeFry-kun: you need to use the upstart shutdown program08:52
Fry-kunwhich in turn runs userhelper, which checks if the user is allowed to run the program08:52
AlexExtremeif you installed it in /usr/local, do sudo /usr/local/sbin/shutdown08:52
Fry-kunthen if so, runs08:53
Fry-kunX doesn't do that :P08:53
Fry-kunit just runs "shutdown" - and then the system says "FU" and X goes "oh well, i'll just restart"08:53
Fry-kunand starts up again08:53
AlexExtremewell08:53
AlexExtremeyou'll have to run it yourself manually ;)08:54
Fry-kunwhich means i have to run shutdown/reboot from a console every time X(08:54
Fry-kungee, thanks :(08:54
Fry-kunthere must be a better way...08:54
Fry-kunman consolehelper:    "[...]  programs like /sbin/shutdown  are paired  with  a  link  from /usr/bin/shutdown to /usr/bin/consolehelper.  Then when non-root users [...]  call  the "shutdown" program, consolehelper will be invoked to authenticate the action and then invoke /sbin/shutdown.  (consolehelper itself has no priviledges; it calls the userhelper(8) program do the real work.)"08:57
Fry-kun"So to make /sbin/foo or /usr/sbin/foo managed, you  need  to  create  a  link  from /usr/bin/foo to /usr/bin/consolehelper and create the file /etc/pam.d/foo, normally using the pam_console(8) PAM module"08:58
Fry-kunwill see if that works08:58
_ionReplace /sbin/shutdown with the upstart version.08:58
AlexExtremebut that'll break if he goes back to sysvinit08:59
_ionThen put the original file back again.08:59
AlexExtremebut he switches between the 2 ;)08:59
Fry-kunwhen it breaks, i won't be able to08:59
Fry-kunif/when09:00
_ionHow so?09:00
_ionJust boot with init=/bin/bash09:00
Fry-kungah09:00
Fry-kunbut.. but... !09:00
=== maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart
Fry-kuni was thinking to make a copy of rc.* in etc to something like rc_upstart.*, so as to make both methods work09:34
Fry-kunwhat do you think?09:34
phsdvFry-kun, making a copy to rc_upstart.* does not change your shutdown issue, right? It is still /sbin/shutdown in X10:08
Fry-kunright10:15
Fry-kunbut it's another issue that i'm trying to solve10:15
phsdvok, sorry10:18
=== theCore [n=alex@modemcable128.255-131-66.mc.videotron.ca] has joined #upstart
phsdvFry-kun: I went to the logs, you want to be able to boot from either upstart or sysvinit, correct?10:28
phsdvI do not think you have to make copies for being able to boot from both. I did not do it and I can boot from both.10:42
=== j_ack [n=rudi@p508D87DC.dip0.t-ipconnect.de] has joined #upstart
=== Fry-kun [n=kostya@h-67-100-89-239.snfccasy.covad.net] has joined #upstart
Fry-kunthe reason i want to use upstart in the first place is to be able to boot faster than i do with sysv - but if there's some problem with upstart, i don't want to lose more time than it takes for upstart to boot11:24
Fry-kunin other words, i can't afford to drop into single user mode just to switch to a working configuration11:25
=== Amaranth [i=travis@conference/ubuntuconf/x-291d96dffd4d16b6] has joined #upstart
=== Amaranth [i=travis@ubuntu/member/amaranth] has joined #upstart
=== theCore [n=alex@modemcable128.255-131-66.mc.videotron.ca] has joined #upstart
=== Amaranth [i=travis@conference/ubuntuconf/x-16d89e02142e95bc] has joined #upstart
=== mbiebl [n=michael@e180124065.adsl.alicedsl.de] has joined #upstart

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