FW: Re: Query regarding the upstart script
gubbala.rao at wipro.com
gubbala.rao at wipro.com
Fri Jan 6 07:05:19 UTC 2012
Hi Evan,
Thanks for reply. I am able to get it working now with this. But one more Issue I am facing
Normally from my application I have to launch the default web browser in user mode. So I am launching it by running the command
** sudo -u <username> xdg-open <Website address>
When I start my daemon with "sudo initctl start <daemon>" The above command is working fine in ubuntu 11.04 but it is always fails in ubuntu 10.04, 10.10
versions. But I have to get this working for ubuntu 10.04, 10.10 versions also. I am not sure why this is failing only in this specific versions.
Is there is any bug fix included in 11.04 for this Issue? Is there any workarround to get it working on older ubuntu version also (10.04, 10.10)?
Please give me some pointers actually I am blocked with this isssue.
Regards
Venugopal
---------- Forwarded message ----------
From: "Evan Huus" <eapache at gmail.com<mailto:eapache at gmail.com>>
Date: 4 Jan 2012 03:01
Subject: Re: Query regarding the upstart script
To: "G.Venugopal Rao" <venugopal.raog at gmail.com<mailto:venugopal.raog at gmail.com>>
Cc: <upstart-devel at lists.ubuntu.com<mailto:upstart-devel at lists.ubuntu.com>>
On Tue, Jan 3, 2012 at 1:30 PM, G.Venugopal Rao
<venugopal.raog at gmail.com<mailto:venugopal.raog at gmail.com>> wrote:
> Hi,
>
> I am newbie to upstart script. I want to write an upstart script which
> launches my daemon with sudo permission.
> Can someone tell me how to do this?
I believe upstart runs all jobs with root permissions by default. You
only have to do extra work if you want your process to be running as
something *other* than root.
http://upstart.ubuntu.com/cookbook/#changing-user
Evan
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20120106/a7d42301/attachment.html>
More information about the upstart-devel
mailing list