/srv/irclogs.ubuntu.com/2013/03/29/#upstart.txt

nocturnHi, I'm writing an upstart config for a python application, what is the best way to not run the app as root?10:17
xnoxnocturn: http://upstart.ubuntu.com/cookbook/#setuid13:59
nocturnThank you xnox13:59
eydaimoni'm not able to compile this on fedora 18. I've tried every single version down to 1.522:10
eydaimonSTDERR: nih-dbus-tool:type.c:86: Not reached assertion failed in type_const22:10
eydaimon/bin/sh: line 4: 25053 Aborted                 /usr/bin/nih-dbus-tool --package=upstart --mode=object --prefix=control --default-interface=com.ubuntu.Upstart0_6 --output=com.ubuntu.Upstart.c ../dbus/com.ubuntu.Upstart.xml22:10
eydaimonanyone nkow?22:10
xnoxeydaimon: which libnih are you using?22:11
eydaimon /usr/bin/nih-dbus-tool --version22:11
eydaimonnih-dbus-tool (libnih 1.0.2)22:11
eydaimonhmm22:11
eydaimonodd I checked the version22:11
eydaimonwell, it's high enough according to the docs22:12
xnoxeydaimon: I'd recommend using libnih from lp:~upstart-devel/libnih/nih22:12
xnoxeydaimon: it fixes  LP: #776532, LP: #777097, LP: #834813, LP: #112358822:13
xnoxhttps://bugs.launchpad.net/libnih/+bug/77653222:13
xnoxhttps://bugs.launchpad.net/libnih/+bug/77709722:13
xnoxhttps://bugs.launchpad.net/libnih/+bug/83481322:13
xnoxhttps://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/112358822:13
eydaimonoie22:13
xnoxamong a few other bugs.22:13
eydaimonwhere do I get upstart-devel?22:13
xnoxbzr branch lp:~upstart-devel/libnih/nih22:14
eydaimonthere's no tarball with that?22:14
eydaimonI assume I will have to use --with-local-libnih ?22:14
xnoxor you can fetch the tarball + diff.gz from the downloads section of https://launchpad.net/ubuntu/+source/libnih/1.0.3-4ubuntu1622:14
xnoxeydaimon: we really should make a new libnih release. I will poke a few people about it.22:15
eydaimonthanks22:15
eydaimonI compiled, installed it, yet still get errors22:18
eydaimontrying to find the actual error now )22:19
eydaimon  CC     control.o22:19
eydaimoncontrol.c: In function ‘control_register_all’:22:19
eydaimoncontrol.c:381:2: error: ‘control_interfaces’ undeclared (first use in this function)22:19
eydaimonthat's with upstart 1.8 and the libnih I just compiled 22:19
eydaimonhttp://pastebin.com/FsVdQRNQ22:20
eydaimonany ideas?22:24
eydaimoni actually don't see it declared anywhere22:25
eydaimon[root@localhost upstart-1.8]# grep -ri control_interfaces *22:25
eydaimonChangeLog:      as control_interfaces22:25
eydaimoninit/control.c:                                control_interfaces, NULL));22:25
eydaimonmust be from some lib which doesn't exist?22:26
eydaimonxnox: still around?22:36
xnoxplease file a bug, and we will look into it.22:38
eydaimonI don't have time to wait for a response so it's not really worth my time to file it unless it's very easy. Link to file?22:39
eydaimonxnox: well, maybe you guys are fast. Where do I file ticket?23:41
eydaimonhttps://bugs.launchpad.net/upstart23:41
xnoxhttps://bugs.launchpad.net/upstart/+filebug23:41
xnoxyeah.23:41
* xnox should look into getting fedora / rhel / opensuse daily builds going.23:42
eydaimonI'm going to include the virtualbox image in the bug23:43
eydaimonmaybe that will help23:43
eydaimonhttp://static.stasiak.at/fedora-18-x86-1.box23:44
eydaimonwith vagrant (vagrantup.com)23:44
eydaimonxnox: https://bugs.launchpad.net/upstart/+bug/116207223:48
eydaimonI gave full steps to reproduce23:48

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