Bug 170816 - [PATCH] devel/jenkins: fix log output
[PATCH] devel/jenkins: fix log output
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Li-Wen Hsu
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-21 11:30 UTC by Gasol Wu
Modified: 2012-09-22 14:30 UTC (History)
1 user (show)

See Also:


Attachments
jenkins-1.476.patch (737 bytes, patch)
2012-08-21 11:30 UTC, Gasol Wu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gasol Wu 2012-08-21 11:30:11 UTC
Redirect standard output to ${jenkins_log_file},
There have unexpected behavior when using --logfile option.

reference: https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins

Port maintainer (lwhsu@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer 2012-08-21 11:30:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lwhsu

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2012-09-22 14:24:47 UTC
Author: lwhsu
Date: Sat Sep 22 13:24:33 2012
New Revision: 304673
URL: http://svn.freebsd.org/changeset/ports/304673

Log:
  - Redirect standard output to ${jenkins_log_file}
  
  PR:		ports/170816
  Submitted by:	Gasol Wu <gasol.wu@gmail.com>

Modified:
  head/devel/jenkins/Makefile
  head/devel/jenkins/files/jenkins.in

Modified: head/devel/jenkins/Makefile
==============================================================================
--- head/devel/jenkins/Makefile	Sat Sep 22 13:09:05 2012	(r304672)
+++ head/devel/jenkins/Makefile	Sat Sep 22 13:24:33 2012	(r304673)
@@ -7,6 +7,7 @@
 
 PORTNAME=	jenkins
 PORTVERSION=	1.482
+PORTREVISION=	1
 CATEGORIES=	devel java
 MASTER_SITES=	http://mirrors.jenkins-ci.org/war/${PORTVERSION}/
 DISTNAME=	jenkins

Modified: head/devel/jenkins/files/jenkins.in
==============================================================================
--- head/devel/jenkins/files/jenkins.in	Sat Sep 22 13:09:05 2012	(r304672)
+++ head/devel/jenkins/files/jenkins.in	Sat Sep 22 13:24:33 2012	(r304673)
@@ -60,7 +60,7 @@ pidfile="/var/run/jenkins/jenkins.pid"
 command="/usr/sbin/daemon"
 java_cmd="${jenkins_java_home}/bin/java"
 procname="${java_cmd}"
-command_args="-p ${pidfile} ${java_cmd} -DJENKINS_HOME=${jenkins_home} ${jenkins_java_opts} -jar %%DATADIR%%/jenkins.war --logfile=${jenkins_log_file} ${jenkins_args}"
+command_args="-p ${pidfile} ${java_cmd} -DJENKINS_HOME=${jenkins_home} ${jenkins_java_opts} -jar %%DATADIR%%/jenkins.war ${jenkins_args} > ${jenkins_log_file} 2>&1"
 required_files="${java_cmd}"
 
 start_precmd="jenkins_prestart"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Li-Wen Hsu freebsd_committer 2012-09-22 14:24:57 UTC
State Changed
From-To: open->closed

Committed. Thanks!