7af4bac0db
Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database. Redmine is open source and released under the terms of the GNU General Public License v2 (GPL). Features Some of the main features of Redmine are: Multiple projects support Flexible role based access control Flexible issue tracking system Gantt chart and calendar News, documents & files management Feeds & email notifications Per project wiki Per project forums Time tracking Custom fields for issues, time-entries, projects and users SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs) Issue creation via email Multiple LDAP authentication support User self-registration support Multilanguage support Multiple databases support This package contains all required Ruby gems in it. Th code in Makefile should be moved to lang/ruby/*.mk later.
33 lines
666 B
Bash
33 lines
666 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: redmine_unicorn.sh,v 1.1 2015/01/03 18:55:43 ryoon Exp $
|
|
#
|
|
|
|
# PROVIDE: redmine_unicorn
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="redmine_unicorn"
|
|
rcvar=$name
|
|
start_cmd="redmine_unicorn_start"
|
|
stop_cmd="redmine_unicorn_stop"
|
|
|
|
redmine_unicorn_start()
|
|
{
|
|
cd @PREFIX@/share/redmine/app
|
|
GEM_HOME=@PREFIX@/share/redmine/gems \
|
|
GEM_PATH=@PREFIX@/share/redmine/gems \
|
|
@PREFIX@/share/redmine/gems/bin/bundle exec unicorn \
|
|
-c @PREFIX@/share/redmine/app/config/unicorn.rb \
|
|
-E production -D
|
|
}
|
|
|
|
redmine_unicorn_stop()
|
|
{
|
|
/bin/kill -QUIT `/bin/cat @PREFIX@/share/redmine/unicorn.pid`
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|