[01:20] Hi. I'm trying to start up a job using setuid, but I need that to work as if it were a login shell. I.e., I need the unprivileged user's environment setup through the files in /etc/profile.d/ Is that doable? [02:25] hi all [02:25] how do I clear the state for a stuck job? [02:26] status says my job is start/killed with a pid [02:26] but that pid doesn't exist [02:26] so stop just hangs [02:26] and start thinks it's already running [02:28] like, does upstart store this state somewhere? [02:47] anyone around? [12:56] i am having an issue with the order that daemons are starting in 12.04 i think [12:56] we use nis + autofs and i think that ypbind is trying to start before network-manager is up [12:57] ypbind shows that it is running after a boot but ypwhich says "Can't communicate with ypbind" [12:57] autofs is also running and it shows a pid [12:58] ypbind however does not list a pid [12:59] the only thing i can do to get the system working after a boot is to issue a "service ypbind restart; service autofs restart" [13:00] is there a more upstart'ish way of doing this so i dont have to do it manually or add a sleep to rc.local? [13:53] etank: are ypbind & autofs upstart jobs or sysvinit scripts? [13:56] seems like they are sysvinit scripts? [13:57] they are upstart jobs it seems [13:57] they link to /lib/init/upstart-job [13:57] they being start-ypbind, ypbind, network-manager and autofs [13:58] if there is an /etc/init/autofs etc. then they are upstart jobs indeed [13:58] there are [13:58] it seems that ypbind is starting too soon [13:59] network seems to not be up when ypbind is trying to start [13:59] should be network-manager -> ypbind -> autofs [14:00] network-manager being started doesn't mean network is up [14:00] there are events when network comes up though [14:02] net-device-up [14:03] ok [14:03] upstart is all new to me [14:03] so I guess those upstart jobs should wait for those events [14:04] net-device-up needs to happen for non loop back interfaces [14:04] then ypbind can start since it can contact the ypservers [14:04] then autofs can start since nsswitch says to talk to nis for automounts [14:05] you could substitute ldap in for ypbind for systems that authenticate to ldap i guess but the idea would be the same [14:06] etank: maybe there are more people in #ubuntu-server who are familiar with this particular type of setup [14:07] network-manager.conf does not have a emit statement for net-device-up [14:07] i will ask in ubuntu-server as welll [14:08] the "emit" stanza is just documentation anyway [14:13] and I think the actual events might be emitted by another job or maybe upstart-udev-bridge -- see upstart-events(7) [21:24] Hello everyone. Is there a way to exec as an unprivileged user from an upstart? I've tried a few things that show up on superuser (using su -s and sudo -u, but they all cause it to start as root still). any ideas? [22:04] Telenull: two ways actually :) [22:04] :P I ended up getting it working with sudo. [22:04] Telenull: if you have upstart 1.5 (Ubuntu 12.04 basically) then you can use 'setuid' and 'setgid' as keywords [22:05] oh neat. [22:05] Telenull: otherwise sudo or start-stop-daemon work [22:05] unfortunately i'm still on 10.04. [22:05] the update to 12.04 will happen for me in about three months. [22:05] Telenull: there are some ideas in http://upstart.ubuntu.com/cookbook/ [22:05] Thanks for the info though! [22:05] Awesome, thanks. [23:57] morning any knowledgeable folk around?