Last active
March 3, 2017 21:42
-
-
Save asangal/2759ba203323b036ebcf3dd56eb82376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# FISHEYE_HOME: The path to the FishEye installation. It's recommended to create a symbolic link to the latest version so | |
# the process will still work after upgrades. Be sure to update the symlink itself when upgrading. | |
# Example: ln -s /usr/local/atlassian/applications/fisheye/4.2.0 /usr/local/atlassian/applications/fisheye/latest | |
FISHEYE_HOME="/mnt/fecru-3.9.1" | |
# FISHEYE_INST: The path to store Fisheye data. | |
# The 2 lines below should be uncommented only if you don't have the environment variables set in /etc/environment file. | |
export FISHEYE_INST="/mnt/fecru-3.9.1_fisheye_data" | |
mkdir -p $FISHEYE_INST || sudo mkdir -p $FISHEYE_INST | |
fisheyectl() { | |
if [ ! -f "$FISHEYE_HOME/fisheyeboot.jar" ] ; then | |
echo "Error: Could not find $FISHEYE_HOME/fisheyeboot.jar" | |
exit 1 | |
fi | |
"$FISHEYE_HOME/bin/fisheyectl.sh" "$1" | |
} | |
case "$1" in | |
start) | |
fisheyectl start | |
;; | |
stop) | |
fisheyectl stop | |
;; | |
restart) | |
fisheyectl stop | |
sleep 10 | |
fisheyectl start | |
;; | |
status) | |
fecru_pid=$(ps -eAf|grep fecru|grep -v grep|sed "s/[ \t][ \t]*/ /g"|cut -d" " -f2|head -1) | |
if [[ -n "${fecru_pid}" ]]; | |
then | |
echo "Process 'fecru' fisheye/crucible is running. PID (${fecru_pid})" | |
else | |
echo "Process 'fecru' fisheye/crucible is NOT running." | |
fi | |
;; | |
*) | |
echo "Usage: $0 {start|stop|status|restart}" | |
esac | |
echo "- Log files are available here:" | |
if [[ -n "${FISHEYE_INST}" ]]; | |
then | |
echo "$(find "${FISHEYE_INST}/var/log" 2>/dev/null | sed "s/^/ /")"; | |
else | |
echo "$(find "${FISHEYE_HOME}/var/log" 2>/dev/null | sed "s/^/ /")" | |
fi | |
echo | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated /etc/init.d/fisheye file. Yea, without root user it was having some perm issues. The new version worked fine.
Fisheye Login page on my Mac machine: http://192.168.0.60:8160/setup/FishEyeLicense-view.do
Port 8060 (Fisheye's port on guest VM is mapped to port 8160 on my Host Mac machine)