Query regarding the upstart script
G.Venugopal Rao
venugopal.raog at gmail.com
Fri Jan 6 10:10:43 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
On Tue, Jan 3, 2012 at 1:30 PM, Evan Huus <eapache at gmail.com> wrote:
> On Tue, Jan 3, 2012 at 1:30 PM, G.Venugopal Rao
> <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20120106/cf2b5fda/attachment.html>
More information about the upstart-devel
mailing list