From owner-freebsd-ports-bugs@freebsd.org Wed Sep 16 07:02:37 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B37DE9CD907 for ; Wed, 16 Sep 2015 07:02:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9EFF711F7 for ; Wed, 16 Sep 2015 07:02:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8G72bGg087446 for ; Wed, 16 Sep 2015 07:02:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203147] [patch][maintainer update] fix rc.d issues introduced with recent perl changes Date: Wed, 16 Sep 2015 07:02:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@skunkwerks.at X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2015 07:02:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203147 Bug ID: 203147 Summary: [patch][maintainer update] fix rc.d issues introduced with recent perl changes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: dch@skunkwerks.at Keywords: patch I can't get daemon to stop or correctly anymore. I think this is the recent perl changes breaking things. wintermute# service h2o start /usr/local/etc/rc.d/h2o: DEBUG: Sourcing /etc/rc.conf.d/h2o /usr/local/etc/rc.d/h2o: DEBUG: checkyesno: h2o_enable is set to YES. Starting h2o. /usr/local/etc/rc.d/h2o: DEBUG: run_rc_command: doit: /usr/local/bin/h2o -m daemon -c /usr/local/etc/h2o/h2o.conf start_server (pid:92099) starting now... starting new worker 92102 wintermute# [INFO] raised RLIMIT_NOFILE to 22500 h2o server (pid:92102) is ready to serve requests fetch-ocsp-response (using OpenSSL 1.0.1p-freebsd 9 Jul 2015) fetch-ocsp-response (using OpenSSL 1.0.1p-freebsd 9 Jul 2015) ... 188.166.111.169 - - [14/Sep/2015:20:44:46 +0000] "GET / HTTP/1.1" 200 344 "-" "raintank collector" wintermute# pgrep -ilf h2o; ps aux |grep h2o; cat /var/run/h2o.pid 92121 python /usr/local/bin/autojump -a /usr/local/share/h2o 92102 /usr/local/bin/h2o -c /usr/local/etc/h2o/h2o.conf 92101 /usr/local/bin/perl -x /usr/local/share/h2o/start_server --pid-file=/var/run/h2o.pid --log-file=/var/log/h2o/error.log --daemonize --port=[::]:80 --port=0.0.0.0:80 --port=[::]:443 --port=0.0.0.0:443 -- /usr/local/bin/h2o -c /usr/local/etc/h2o/h2o.conf www 92102 4.0 0.0 64216 7992 - S 8:44PM 0:00.50 /usr/local/bin/h2o -c /usr/local/etc/h2o/h2o.conf root 92101 0.1 0.0 47648 12368 - S 8:44PM 0:00.00 /usr/local/bin/perl -x /usr/local/share/h2o/start_server --pid-file=/var/run/h2o.pid root 92121 0.0 0.0 25612 5372 6 RN 8:44PM 0:00.00 python /usr/local/bin/autojump -a /usr/local/share/h2o (python2.7) root 92124 0.0 0.0 18824 2612 6 S+ 8:44PM 0:00.00 grep h2o 92101 wintermute# service h2o stop /usr/local/etc/rc.d/h2o: DEBUG: Sourcing /etc/rc.conf.d/h2o /usr/local/etc/rc.d/h2o: DEBUG: checkyesno: h2o_enable is set to YES. h2o not running? (check /var/run/h2o.pid). wintermute# killall -9 -m 'h2o|perl' wintermute# grep pid-file /usr/local/etc/h2o/h2o.conf |cut -d' ' -f2 /var/run/h2o.pid config snippet: listen: 80 listen: port: 443 ssl: ... access-log: /var/log/h2o/access.log error-log: /var/log/h2o/error.log pid-file: /var/run/h2o.pid user: www To fix this, I think 3 changes are required: # /usr/local/share/h2o/* replace all shebangs by full /usr/local/bin/perl path # /usr/local/etc/rc.d/h2o procname="/usr/local/bin/perl" # /usr/ports/www/h2o/Makefile introduce perl as a dependency which is missing from the original patch. -- You are receiving this mail because: You are the assignee for the bug.