YUKI Hiroshi
null+****@clear*****
Thu Sep 25 17:04:23 JST 2014
YUKI Hiroshi 2014-09-25 17:04:23 +0900 (Thu, 25 Sep 2014) New Revision: 9ffc1f5d630e5674dd6914d78ac3c90d002f1ff8 https://github.com/droonga/droonga-http-server/commit/9ffc1f5d630e5674dd6914d78ac3c90d002f1ff8 Message: Align Modified files: install/centos/droonga-http-server Modified: install/centos/droonga-http-server (+25 -25) =================================================================== --- install/centos/droonga-http-server 2014-09-25 17:02:39 +0900 (08958a2) +++ install/centos/droonga-http-server 2014-09-25 17:04:23 +0900 (e4372f4) @@ -1,8 +1,8 @@ #!/bin/bash # -# /etc/rc.d/init.d/droonga-http-server +# /etc/rc.d/init.d/droonga-http-server # -# <A HTTP Protocol Adapter for Droonga> +# <A HTTP Protocol Adapter for Droonga> # chkconfig: 2345 20 80 # TODO: we have to migrate to systemd based management in near future... @@ -22,38 +22,38 @@ DAEMON_ARGS="--daemon --pid-file=$PIDFILE" [ -x $DAEMON ] || exit 0 start() { - echo -n "Starting $NAME: " + echo -n "Starting $NAME: " daemon --user $USER --pidfile $PIDFILE $DAEMON $DAEMON_ARGS RET_CODE=$? - touch /var/lock/subsys/$NAME - return $RET_CODE + touch /var/lock/subsys/$NAME + return $RET_CODE } stop() { - echo -n "Shutting down $NAME: " + echo -n "Shutting down $NAME: " killproc -p $PIDFILE $DAEMON RET_CODE=$? - rm -f /var/lock/subsys/$NAME - return $RET_CODE + rm -f /var/lock/subsys/$NAME + return $RET_CODE } case "$1" in - start) - start - ;; - stop) - stop - ;; - status) - status $NAME - ;; - restart) - stop - start - ;; - *) - echo "Usage: $NAME {start|stop|status|reload|restart[|probe]" - exit 1 - ;; + start) + start + ;; + stop) + stop + ;; + status) + status $NAME + ;; + restart) + stop + start + ;; + *) + echo "Usage: $NAME {start|stop|status|reload|restart[|probe]" + exit 1 + ;; esac exit $? -------------- next part -------------- HTML����������������������������...Download