8 GITBLIT_LOG
=/var
/log
/gitblit
/gitblit.log
10 GITBLIT_JAVA_OPTS
="-server -Xmx1024M"
12 GITBLIT_STOP_ARGS
="--stop"
14 [ -r /etc
/profile.d
/jdk.sh
] && .
/etc
/profile.d
/jdk.sh
15 [ -r /etc
/conf.d
/$DAEMON ] && .
/etc
/conf.d
/$DAEMON
19 stat_busy
"Starting $DAEMON"
20 if ck_daemon
$DAEMON; then
21 su
-s '/bin/sh' $GITBLIT_USER -c "cd && $JAVA_HOME/bin/java $GITBLIT_JAVA_ARGS -jar gitblit.jar $GITBLIT_START_ARGS 2>&1 >>$GITBLIT_LOG" &>/dev
/null
&
30 stat_busy
"Stopping $DAEMON"
31 if ! ck_daemon
$DAEMON; then
32 su
-s '/bin/sh' $GITBLIT_USER -c "cd && $JAVA_HOME/bin/java $GITBLIT_JAVA_ARGS -jar gitblit.jar $GITBLIT_STOP_ARGS" &>/dev
/null
46 echo "usage: $0 {start|stop|restart}"