/srv/irclogs.ubuntu.com/2013/05/13/#upstart.txt

Jordan_UI just asked thufir_ to come here from #ubuntu because they appear to have a defunct process whose parent is PID 1, which shouldn't be possible.00:01
thufir_what you should I about a defunct process owned by init?  00:02
Jordan_USounds similar to https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1077579 , and I've seen at least 4 other people with the what appears to be the same bug at various times from #ubuntu.00:02
thufir_http://pastebin.com/vwfiZKKv    ps -p 12557 -o ppid              if that link works.00:03
thufir_that's weird.  I mean, I could restart, but while we're here, what's init?  is that like root?00:03
thufir_Jordan_U: oh, how do I file a bug?  bug ....00:05
Jordan_Uthufir_: Init is the first process run in a *NIX system, and never dies (if init ever dies, the kernel panics and everything stops). Among other jobs, it is supposed to be the parent of all orphaned processes, and reap them whenever they die. PID 1, i.e. init, i.e. upstart appears to be failing at this basic job.00:07
thufir_yeah, I was reading about that in man page.00:07
Jordan_Uthufir_: I don't know if it's best to file a new bug report or say that one of the existing reports affects you too. Hopefully someone here will respond (wait a while, at least an hour). If nobody does, then file a new bug report but mention that it may be a duplicate of https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1077579 .00:08
thufir_Jordan_U: that's ok, no worries.  I'll just reboot.  I'll add a comment to that bug, wrote down the #.  thanks.   I'm all set now, nothing to do.  Just wanted to know if there was something I could do.  00:10
Jordan_Uthufir_: Well someone here might have a test they'd like you to run.00:11
thufir_Jordan_U: ok00:14
* thufir_ hangs about :)00:14
Jordan_Uthufir_: Thanks. I've been wondering about this bug for a while, I'd love to know why/how it's happening :)00:15
thufir_ok.  hawat.thufir@gmail.com by the way00:15
thufir_12.10 server edition, installed from that and added xubuntu desktop00:16
Jordan_Uthufir_: Do you use Samba?00:23
thufir_nope.  not installed, let me check.00:24
thufir_oh, I'm installing chromium-browser, but I'm positive that I don't use samba.00:24
thufir_Jordan_U: I do have samba installed!00:43
Jordan_Uthufir_: There was speculation that the linked bug might be related to https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1075923 , but unless you had mounted a samba share via Thunar I think we can rule that out (for you at least).00:45
thufir_I'm using thunar...00:45
thufir_and have two hard drives.  00:45
thufir_but, I have no idea what samba is.  I'll read wikipedia.00:46
thufir_I can't imagine why I have samba installed, it's only Linux on this box.  there used to be windows, so maybe it's a holdover.  I'll look into mounting a share via thunar.00:49
Jordan_Uthufir_: Samba is a very common way to share files over the network, even when you're only sharing among *NIX machines, but you would know if you'd been mounting networked filesystems.00:54
thufir_ok, not networked.  just 00:56
thufir_Jordan_U: still want me to hang around?01:30
Jordan_Uthufir_: I guess not. Please do file a bug report though, with the output of "ps aux" and ps -p 12557 -o ppid, and the output of "dmesg" in case there's anything interesting there.01:33
thufir_got it.  01:34
Jordan_Uthufir_: Thanks for taking the time to file a bug report.01:39
thufir_lol, what's the command again?01:41
thufir_I'm looking at https://help.ubuntu.com/community/ReportingBugs.  i'll let you know.01:42
=== ion_ is now known as ion
=== elmo__ is now known as elmo
=== SpamapS_ is now known as SpamapS
=== stgraber_ is now known as stgraber
=== SpamapS_ is now known as SpamapS
chrasso i had a requestion: re upstart environment. 18:56
chrasif i have a ver pre-defined in my upstart script, ie. env FOO=${some_value}18:56
chrasand then issue a start with FOO=${some_other_value}18:56
chrasthen the entire lifetime of that execution has FOO=${some_other_value}18:57
chrasie, even during a stop18:57
SpamapSno18:57
chraswell18:57
chrasyes18:57
chrasthats the case18:57
SpamapSthat instance will get some_other_value18:58
SpamapSstop will destroy the instance18:58
chraswe're saying the same thing18:58
chrasonce we stop it, i dont care18:58
chrasim talking about lifetime of start -> stop18:58
SpamapSrestart will not18:58
chrasanyways, my question is thus18:59
chrasis there any way for it to automatically use the predefined value18:59
chrasUNLESS its specified on cmdline18:59
SpamapSahh yes18:59
SpamapSduring stop, got it18:59
chrasso if i doo FOO=bar on cmdline18:59
chrasi want that to be true in that incarnation18:59
chrasbut if i do a stop later19:00
chrascan i have to fall back to the predefined value19:00
chrasinstead of preserving the bar19:00
chrasim my exact case, i pass my event a force flag19:01
chrasand i wanted to avoid having two force flags19:01
SpamapSso start creates an instance of your job19:01
chrasonce for startup, and one for stop19:01
SpamapSpassing FOO=bar to start makes FOO=bar for that instance19:01
chrasyup19:01
SpamapSstopping that instance, removes all memory of FOO=bar19:01
chrascan i can overwrite that with stop FOO=something_else19:01
SpamapSso a subsequent 'start' will pick up 'env FOO=baz' from the job definition because you did not pass anything to start.19:02
chrasyup19:02
chrasknow that19:02
SpamapSno you can't change environment variables on a running instance19:02
chrasthats what i figured19:02
chrasso ill have to two use diff vars19:02
SpamapSuse a file on disk to affect the post/pre stop scripts19:03
chrasbleh, have to use two diff19:03
chrasthats messy in my case, its easier to have FORCE_FLAG_WHEN_STARTING vs FORCE_FLAG_WHEN_STOPPING19:03
SpamapShm19:03
chrassince when i send my force flag during startup, i dont neccecerily want that set during stop19:03
SpamapSstop does list KEY=VALUE in the man page19:03
chrasso ill just have to disjoint them19:03
SpamapSso I may be wrong19:04
chrasim likely doing a bad job explaining my situation19:04
SpamapSno I get it perfectly19:04
SpamapSand I think its a valid use case19:04
chrasyouc an do stop VAR=19:05
chrasand it works fine19:05
chrason startup i set a force flag in some situations19:15
chrasand i ALSO need a force flag in some stop situations19:15
chrasbut thoes are not the same19:15
SpamapSah ok, I think the KEY=value is just for locating multi-instance jobs19:15
chrasso havign it be global is problematic19:15
chraswell19:15
chrasthats if you use the env in your $INSTANCE19:15
chrasvar19:15
SpamapSso like when you've done 'instance $FOO' in your job, you can do 'start myjob FOO=1; start myjob FOO=2;stop myjob FOO=1;'19:16
chrasyup19:16
* SpamapS is reading the code at this point19:16
chrasinstance can be wahtever you want mind you, ie can be "chris-$var1-$var2-$varN"19:16
SpamapShaving done some really crazy stuff w/ instance (note /etc/init/wait-for-state.conf) .. I'm fully aware :)19:16
chraswhat i was hoping for was there was a way to say, FOO=${whats_defined_in_the_event_always} UNLESS, its specified on the command line19:16
chrasso if i did a stop on an event19:16
SpamapShttp://bazaar.launchpad.net/~upstart-devel/upstart/trunk/view/head:/init/job_class.c#L106019:16
SpamapSchras: comment confirms, args are not passed to the job during stop19:16
chrasthen it would take wht was pre-defined, instead of what was set when it was specified on the cmdline during the start19:17
chrassure they are19:17
chrasMay 13 19:12:29 t-nfs04b init: (env_test post-start): Value of CHRIS=[PREDEFINED]19:17
chrasMay 13 19:12:36 t-nfs04b init: (env_test pre-stop): Value of CHRIS=[stopingvar]19:17
chrasroot@t-nfs04b:~# initctl start env_test 19:17
chrasroot@t-nfs04b:~# initctl stop env_test CHRIS=stopingvar19:17
SpamapSchras: oh so it does work the way you want. Interesting!19:17
chraswell no19:17
chrasthats the expected behaviour 19:17
chrasif i do this19:17
chrasinitctl start env_test CHRIS=startingval19:17
chrasand then do ao19:17
chrasinitctl stop env_test19:17
chraswith NO cmdline19:17
chrasid 'expect' it to be19:17
chrasCHRIS=[PREDEFINED]19:17
chrasinstead, its CHRIS="startingval"19:17
SpamapSyeah I'm just surprised it is passed into the pre-stop/post-stop19:17
SpamapSyeah, but you see now why19:17
SpamapSYou'd need a special case thing ot initctl, like '--restore-predef' ... seems pretty complicated.19:17
chrasyup19:17
chrasso i think, best bet for me, is just to have TWO variables19:17
chrasone to force things during startup19:17
SpamapSor a DEFAULT_FOO and then pass in USE_DEFAULT=119:17
chrasand once to force things during stopping19:17

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