<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
Hi Evan, <br>
<br>
Thanks for reply. I am able to get it working now with this. But one more Issue I am facing
<br>
Normally from my application I have to launch the default web browser in user mode. So I am launching it by running the command
<br>
** sudo -u <username> xdg-open <Website address> <br>
<br>
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
<br>
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.
<br>
<br>
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)?
<br>
<br>
Please give me some pointers actually I am blocked with this isssue.<br>
<br>
Regards<br>
Venugopal<br>
<br>
<br>
<div></div>
<div>
<div class="gmail_quote">---------- Forwarded message ----------<br>
From: "Evan Huus" <<a href="mailto:eapache@gmail.com" target="_blank">eapache@gmail.com</a>><br>
Date: 4 Jan 2012 03:01<br>
Subject: Re: Query regarding the upstart script<br>
To: "G.Venugopal Rao" <<a href="mailto:venugopal.raog@gmail.com" target="_blank">venugopal.raog@gmail.com</a>><br>
Cc: <<a href="mailto:upstart-devel@lists.ubuntu.com" target="_blank">upstart-devel@lists.ubuntu.com</a>><br>
<br type="attribution">
<div class="quoted-text">On Tue, Jan 3, 2012 at 1:30 PM, G.Venugopal Rao<br>
<<a href="mailto:venugopal.raog@gmail.com" target="_blank">venugopal.raog@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am newbie to upstart script. I want to write an upstart script which<br>
> launches my daemon with sudo permission.<br>
> Can someone tell me how to do this?<br>
<br>
</div>
I believe upstart runs all jobs with root permissions by default. You<br>
only have to do extra work if you want your process to be running as<br>
something *other* than root.<br>
<br>
<a href="http://upstart.ubuntu.com/cookbook/#changing-user" target="_blank">http://upstart.ubuntu.com/cookbook/#changing-user</a><br>
<font color="#888888"><br>
Evan<br>
</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p> 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. </p>
<p>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. </p>
<p>
www.wipro.com
</p>
</body>
</html>