Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2010 18:56:18 +0100
From:      Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= <decke@bluelife.at>
To:        Doug Barton <dougb@FreeBSD.org>, Wesley Shields <wxs@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Aw: Re: cvs commit: ports/www/redmine Makefile ports/www/redmine/files redmine.in
Message-ID:  <1268589378.8345.2.camel@Nokia-N900-42-11>
In-Reply-To: <4B9C6C9E.3070902@FreeBSD.org>
References:  <201003140407.o2E47fhJ063684@repoman.freebsd.org> <4B9C6C9E.3070902@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Urspr=C3=BCngliche Mitteilung -----
> On 03/13/10 20:07, Wesley Shields wrote:
> > wxs=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2010-03-14 0=
4:07:41 UTC
> >
> >=C2=A0 =C2=A0 FreeBSD ports repository
> >
> >=C2=A0 =C2=A0 Modified files:
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 www/redmine=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Makefile
> >=C2=A0 =C2=A0 Added files:
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 www/redmine/files=C2=A0 =C2=A0 =C2=A0 redmin=
e.in
> >=C2=A0 =C2=A0 Log:
> >=C2=A0 =C2=A0 - Add RC script.
> >=C2=A0 =C2=A0
> >=C2=A0 =C2=A0 PR:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ports/144299
> > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=3D144299=C2=A0 =C2=A0 Submit=
ted by:=C2=A0 =C2=A0 Bernhard
> > Froehlich <decke@bluelife.at> (maintainer)=C2=A0 =C2=A0
> >=C2=A0 =C2=A0 Revision=C2=A0 Changes=C2=A0 =C2=A0 =C2=A0 Path
> >=C2=A0 =C2=A0 1.8=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +6 -0=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ports/www/redmine/Makefile
> >=C2=A0 =C2=A0 1.1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +32 -0=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 ports/www/redmine/files/redmine.in (new)
> >
> > http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/www/redmine/Makefile.diff?&=
r1=3D1.7&r2=3D1.8&f=3Dh
> > http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/www/redmine/files/redmine.i=
n
>
> There are several problems with this script.

Thanks for your comment. I will have a look at the issues in the next few d=
ays.

> 1. The REQUIRE line needs to be changed to LOGIN. This is preferred for
> all local scripts, but mandatory for those which run with a non-root
> [ug]id (which this one does).
>
> 2. Instead of command=3D%%RUBY_NAME%% it's likely you want to use
> command_interpreter instead. Does the stop command work with this script
> as it is currently?

Yes it does work fine. I use it since a few months. The binary that is show=
n with top is ruby18 and RUBY_NAME is exactly that.

> 3. _flags should not be included in command_args, it will result in them
> being included twice.

Oh did not know that the flags are automatically append to command_args. I =
will check and remove this then.

> 4. Are all of the options included in _flags actually things that a user
> might wish to twiddle? Should some of them be in command_args instead?

Yes they are but the user should have no reason to change user and group so=
 this could be moved to command_args.

> 5. The pidfile location looks dubious to me, but I'm not sure if putting
> pid files in WWWDIR has somehow become routine?

That is a bigger disussion because redmine is designed to work completely i=
nside of his home directory and that includes scripts, pidfiles, tmp and ev=
erything else. I have already looked at spliting that up but decided agains=
t it because it would be a bad hack.

> 6. And finally a minor issue, %%RC_SUBR%% should just be /etc/rc.subr.
> I'll be making that change for all ports once the ports freeze is over,
> so no reason not to do it now.

Did not know that either. When thinking about that issues it would have bee=
n good to have a few good examples or a documentation. Does that probably a=
lready exist and i just haven't found it?

Thanks for your comments and i will also have a look at my other startscrip=
ts if they have the same problems.

--
Bernhard Fr=C3=B6hlich=20
http://www.bluelife.at/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1268589378.8345.2.camel>