[Bug 203147] [patch][maintainer update] fix rc.d issues introduced with recent perl changes
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 16 07:02:37 UTC 2015
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 at FreeBSD.org
Reporter: dch at 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.
More information about the freebsd-ports-bugs
mailing list