[Ilugc] Unable to start the startup script - SU: /bin/bash: Permission denied - Error

  • From: nayagam.m@xxxxxxxxx (Murugiah Piramanayagam)
  • Date: Sat Feb 17 11:59:20 2007

Hi,

Thanks for your suggestions.

I tried various options in my script. Still, I am unable to succeed. Kindly
help me to resolve this issue.

Thanks.

Piramanayagam M


On 2/16/07, Ingenieur <goda.abishek@xxxxxxxxx> wrote:


Hi,
start() {
        echo -n "Starting jira: "
        su - $JIRA_OWNER -c "$JIRA_HOME/bin/startup.sh"
}
stop() {
        echo -n "Shutting down httpd: "
        su - $JIRA_OWNER -c "$JIRA_HOME/bin/shutdown.sh"
}

Don't use su -. Use just su in an init script.

Valuable point. I guess the error is due to some space between - and
$JIRA_OWNER. Try changing to
su -$JIRA_OWNER or some such equivalent.


--
Regards,

Abishek Goda
http://abishek.wetpaint.com
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: