[Ilugc] Unable to start the startup script - SU: /bin/bash: Permission denied - Error
- From: goda.abishek@xxxxxxxxx (Ingenieur)
- Date: Fri Feb 16 08:25:41 2007
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
Other related posts: