/srv/irclogs.ubuntu.com/2010/01/04/#upstart.txt

_AndrewHi03:07
_AndrewI have an upstart script I have made but it's not working on startup http://paste.ubuntu.com/351057/03:08
_AndrewAm I doing this right? I'm trying to execute a program under a specific user03:08
JanC_Andrew: 'exec' has a '-u' option on your system ?04:24
_AndrewI just copied it from so other upstart script04:25
_AndrewI have no idea04:25
JanCfrom which one?04:25
JanCyou'll need to use something like su or sudo IMO04:26
JanCunless you do have an 'exec' with that option of course04:29
_Andrewhttp://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall?highlight=%28upstart%2904:30
_AndrewI got it from here04:30
JanCwell, they *do* use sudo there, right?04:31
JanCalso, the 4 first lines can be written as one: start on runlevel [2345]04:33
ionAlso, [-f foo] is invalid (unless you have a command called [-f), you’ll want [ -f foo ]04:34
ionWill startup.sh stay in the foreground until shutdown.sh is called?04:35
ion(The job you pasted expects it to.)04:36
_AndrewI think so yes04:36
_AndrewShould it not stay in the foreground?04:38
ionIt should.04:39
ionTo clarify: it should stay in the foreground. :-)04:40
JanCion: well, that or you need extra stuff in that file  ;)04:40
ionA future version of Upstart will properly track daemonizing things, but for now, it’s often best just to have it stay in the foreground.04:40
ionjanc: Yeah, and you also need to know exactly what you’re doing in order not to break Upstart’s current fork-tracking code. :-)04:41
JanC_Andrew: did you read init(5) ?04:41
JanChttp://manpages.ubuntu.com/manpages/karmic/en/man5/init.5.html for a web version04:43
JanCit's the best docs upstart has currently, I think  ;)04:44
_Andrewok thanks gys04:44
JanC_Andrew: I also see that dropbox example is for versions of Ubuntu < 9.1004:45
JanCthe script needs to go into /etc/init/ now, not /etc/event.d/04:46
JanCso, depending on what version of upstart you use...04:46
_AndrewOur server is LTS so I think it's in the right place, but thanks for letting me know04:47
JanC_Andrew: ah, then the manpage I pointing to might not work04:47
JanCI'm not sure if there is much documentation for that version of upstart04:48
JanC_Andrew: you can still use sysvinit init scripts though, if you are more familiar with those04:48
_AndrewI think this should be working now. I'll let you know if I have any other probs that I can't figure out04:49
=== ev1 is now known as ev
ionkeybuk: O hai13:44
ionWelcome back13:44
ionkeybuk: http://people.canonical.com/~scott/daily-bootcharts/ :-D13:44
KeybukHappy new tiger13:44
MdKeybuk: can you remind me the current plan wrt upstart and network up/down events?13:44
Keybukion: what about them?13:44
Keybukion: ah, amusing gap for new year calcuations :p13:45
ionkeybuk: Nothing really. It was just interesting to learn there are 29 days in the zeroth month of the year.13:45
ionBeginning with the 0th day, of course.13:45
KeybukMd: I don't have any current plans fori t13:45
MdKeybuk: I do... what do you think about a long-lived daemon which will listen to interface events on the netlink socket and feed back "cleaned up" events to upstart after applying a "carrier delay" and/or debouncing?13:46
KeybukMd: that's probably the right kind of thing13:47
Keybukthough I don't know what you mean by "carrier delay"13:47
Mdoh, it's an IOS feature which delays up/down events for a few ms, to prevent flapping the IGP if the physical layer bounces13:48
=== sadmac2_ is now known as sadmac2
=== robbiew_ is now known as robbiew
=== robbiew is now known as robbiew-AF
=== robbiew-AF is now known as robbiew-afk
=== robbiew-afk is now known as robbiew
=== robbiew is now known as robbiew_
btmMd: bonding uses similar delays to deal with network equipment bring a link up before it is ready to recieve and pass traffic, which is another applicable analogy IRT upstart.23:55

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