[14:03] <lucido> hello, how can I start a daemon with a specific user?
[14:04] <ion> exec sudo -H -u user -- cmd
[14:07] <lucido> it's harmattan system, has no sudo only su
[14:07] <jodh> lucido: http://upstart.ubuntu.com/cookbook/#run-a-job-as-a-different-user
[14:08] <ion> su seems to like to leave an extra process running, leading Upstart to track it instead of your daemon.
[14:08] <ion> Even if you add “exec” to everything, including the sh script passed to su.
[14:12] <lucido> 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] <toabctl> 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] <jodh> lucido: does the job run via cron/at?
[14:25] <jodh> 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] <toabctl> jodh, ok.
[14:26] <jodh> toabctl: thanks
[14:35] <lucido> jodh, no all it does is export DISPLAY=':0'
[14:35] <lucido>     /usr/bin/aegis-exec -s -u user /opt/digimedaemon/bin/digimedaemon
[14:38] <jodh> lucido: this is a daemon with a gui?
[14:40] <lucido> yes it shows a gui at times
[14:47] <lucido> jodh, harmattan ahs no start-stop-daemon nor sudo to run as alternate user, now its running as nobody
[17:32] <lucido> ok, for the record, the solution to my upstart problems can be found here: http://pastebin.com/izjm27m7
[21:11]  * JanC thinks people need to learn "daemons with a GUI" are a bad concept, especially when they are system daemons...