[14:03] hello, how can I start a daemon with a specific user? [14:04] exec sudo -H -u user -- cmd [14:07] it's harmattan system, has no sudo only su [14:07] lucido: http://upstart.ubuntu.com/cookbook/#run-a-job-as-a-different-user [14:08] su seems to like to leave an extra process running, leading Upstart to track it instead of your daemon. [14:08] Even if you add “exec” to everything, including the sh script passed to su. [14:12] the problem that I'm trying to solve is that if I run my app from the shell it functions correectly but if its launched by upstart even if its being run as the same user as in the shell it fails to recieve some qt signals. Is there anyothing else different between these two scenarios than the eviroment variables? [14:20] jodh, the current test cases fail for me on ubuntu precise. see https://lists.ubuntu.com/archives/upstart-devel/2012-January/001785.html [14:24] lucido: does the job run via cron/at? [14:25] toabctl: I've never seen this problem and have run the tests on a lot of precise systems. Is it repeatable? Please can you open a bug https://bugs.launchpad.net/upstart/+filebug with full details. [14:26] jodh, ok. [14:26] toabctl: thanks [14:35] jodh, no all it does is export DISPLAY=':0' [14:35] /usr/bin/aegis-exec -s -u user /opt/digimedaemon/bin/digimedaemon [14:38] lucido: this is a daemon with a gui? [14:40] yes it shows a gui at times [14:47] jodh, harmattan ahs no start-stop-daemon nor sudo to run as alternate user, now its running as nobody === codebeaker_ is now known as codebeaker|runni === codebeaker|runni is now known as codebeaker|run [17:32] ok, for the record, the solution to my upstart problems can be found here: http://pastebin.com/izjm27m7 === codebeaker|run is now known as codebeaker [21:11] * JanC thinks people need to learn "daemons with a GUI" are a bad concept, especially when they are system daemons... === JanC_ is now known as JanC