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

  • From: mrugeshkarnik@xxxxxxxxx (Mrugesh Karnik)
  • Date: Fri Feb 16 00:08:33 2007

On Wednesday 14 Feb 2007 15:32:44 Murugiah Piramanayagam wrote:

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.


-- 
----------------------------------------
Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net
----------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 
http://www.ae.iitm.ac.in/pipermail/ilugc/attachments/20070215/81c71128/attachment-0001.bin

Other related posts: