public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in www-apps/redmine/files: redmine-2.initd
@ 2013-01-07 13:39 Matsuu Takuto (matsuu)
  0 siblings, 0 replies; only message in thread
From: Matsuu Takuto (matsuu) @ 2013-01-07 13:39 UTC (permalink / raw
  To: gentoo-commits

matsuu      13/01/07 13:39:26

  Added:                redmine-2.initd
  Log:
  Version bumped, bug #418925.
  
  (Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key 05280D69)

Revision  Changes    Path
1.1                  www-apps/redmine/files/redmine-2.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/redmine/files/redmine-2.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/redmine/files/redmine-2.initd?rev=1.1&content-type=text/plain

Index: redmine-2.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/files/redmine-2.initd,v 1.1 2013/01/07 13:39:26 matsuu Exp $

RAILS_ENV=${RAILS_ENV:-production}
REDMINE_DIR=${REDMINE_DIR:-/var/lib/redmine}
REDMINE_ADDRESS=${REDMINE_ADDRESS:-localhost}
REDMINE_PORT=${REDMINE_PORT:-3000}
REDMINE_USER=${REDMINE_USER:-redmine}
REDMINE_GROUP=${REDMINE_GROUP:-redmine}
REDMINE_PIDFILE="${REDMINE_DIR}/tmp/pids/server.pid"

depend() {
	use apache2 git-daemon mysql net postgresql svnserve
}

start_pre() {
	if [ ! -e "${REDMINE_DIR}/config/initializers/secret_token.rb" ] ; then
		eerror "Execute the following command to initlize environment:"
		eerror
		eerror "# emerge --config www-apps/redmine"
		eerror
		return 1
	fi
}

start() {
	ebegin "Starting redmine"
	cd "${REDMINE_DIR}"
	start-stop-daemon --start --quiet --user ${REDMINE_USER}:${REDMINE_GROUP} \
		--pidfile "${REDMINE_PIDFILE}" \
		--exec /usr/bin/ruby "${REDMINE_DIR}"/script/rails server -- \
		--daemon --environment=${RAILS_ENV} \
		--binding=${REDMINE_ADDRESS} --port=${REDMINE_PORT} \
		${REDMINE_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping redmine"
	cd "${REDMINE_DIR}"
	start-stop-daemon --signal INT --quiet --pidfile "${REDMINE_PIDFILE}"
	eend $?
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-07 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07 13:39 [gentoo-commits] gentoo-x86 commit in www-apps/redmine/files: redmine-2.initd Matsuu Takuto (matsuu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox