diff options
author | Doug Barton <dougb@FreeBSD.org> | 2010-03-14 21:14:23 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2010-03-14 21:14:23 +0000 |
commit | 499f2717dcfa9d4ada3b47952ed4319eb45c5140 (patch) | |
tree | 091992456fac00cfd1a53a9bc63e2e098dfbae4d /www/redmine/files | |
parent | 60805871ec98c5d4c6279cfc3f6c2a04204e33c2 (diff) |
Notes
Diffstat (limited to 'www/redmine/files')
-rw-r--r-- | www/redmine/files/redmine.in | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/www/redmine/files/redmine.in b/www/redmine/files/redmine.in index 1d224aefe2ef..f85a06bd1141 100644 --- a/www/redmine/files/redmine.in +++ b/www/redmine/files/redmine.in @@ -1,7 +1,9 @@ #!/bin/sh +# $FreeBSD$ + # PROVIDE: redmine -# REQUIRE: DAEMON +# REQUIRE: LOGIN # KEYWORD: shutdown # Add the following line to /etc/rc.conf[.local] to enable redmine @@ -10,23 +12,22 @@ # Set it to "YES" to enable redmine. # redmine_flags (str): Custom additional arguments to be passed # to redmine. -# -. %%RC_SUBR%% +. /etc/rc.subr name="redmine" rcvar=`set_rcvar` command=%%RUBY_NAME%% -redmine_home="%%WWWDIR%%" -pidfile="${redmine_home}/tmp/pids/thin.pid" + +pidfile="%%WWWDIR%%/tmp/pids/thin.pid" load_rc_config $name # set defaults : ${redmine_enable="NO"} -: ${redmine_flags="-a 0.0.0.0 -p 3000 -e production -u www -g www"} +: ${redmine_flags="-a 0.0.0.0 -p 3000 -e production"} -command_args="-d -D -c ${redmine_home} ${redmine_flags}" +command_args="-d -D -c %%WWWDIR%% -u www -g www" start_cmd="%%PREFIX%%/bin/thin ${command_args} start" run_rc_command "$1" |