lucido | hello, how can I start a daemon with a specific user? | 14:03 |
---|---|---|
ion | exec sudo -H -u user -- cmd | 14:04 |
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:07 |
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:08 |
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:12 |
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:20 |
jodh | lucido: does the job run via cron/at? | 14:24 |
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:25 |
toabctl | jodh, ok. | 14:26 |
jodh | toabctl: thanks | 14:26 |
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:35 |
jodh | lucido: this is a daemon with a gui? | 14:38 |
lucido | yes it shows a gui at times | 14:40 |
lucido | jodh, harmattan ahs no start-stop-daemon nor sudo to run as alternate user, now its running as nobody | 14:47 |
=== codebeaker_ is now known as codebeaker|runni | ||
=== codebeaker|runni is now known as codebeaker|run | ||
lucido | ok, for the record, the solution to my upstart problems can be found here: http://pastebin.com/izjm27m7 | 17:32 |
=== codebeaker|run is now known as codebeaker | ||
* JanC thinks people need to learn "daemons with a GUI" are a bad concept, especially when they are system daemons... | 21:11 | |
=== JanC_ is now known as JanC |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!