From owner-freebsd-bugs@freebsd.org Thu Sep 22 09:21:59 2016 Return-Path: Delivered-To: freebsd-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 ABD57BE4BB3 for ; Thu, 22 Sep 2016 09:21:59 +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 9B28F8E4 for ; Thu, 22 Sep 2016 09:21:59 +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 u8M9Lxr0056161 for ; Thu, 22 Sep 2016 09:21:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 212829] daemon(8) using -P swallows signals such as SIGHUP instead of propagating them Date: Thu, 22 Sep 2016 09:21:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dch@skunkwerks.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 09:21:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212829 --- Comment #4 from Dave Cottlehuber --- BTW I can see the advantages of daemon accepting all signals but then the change becomes more complex - the original issue was allowing the SIGHUP fr= om `service widget reload` to be passed through.=20 Apparently /etc/rc.subr allows passing arbitrary signals through if defined= in the widget's script: reload) if [ -z "$rc_pid" ]; then _run_rc_notrunning return 1 fi _run_rc_precmd || return 1 _doit=3D$(_run_rc_killcmd "${sig_reload:-HUP}") _run_rc_doit "$_doit" || return 1 _run_rc_postcmd ;; viz: japanese/ebnetd/files/ebhttpd.in:sig_reload=3DSIGHUP japanese/ebnetd/files/ebnetd.in:sig_reload=3DSIGHUP japanese/ebnetd/files/ndtpd.in:sig_reload=3DSIGHUP lang/php55/files/php-fpm.in:sig_reload=3D"USR2" lang/php56/files/php-fpm.in:sig_reload=3D"USR2" lang/php70/files/php-fpm.in:sig_reload=3D"USR2" mail/mimedefang/files/patch-examples__init-script.in: sig_reload=3D"INT" mail/opendkim/files/milter-opendkim.in:sig_reload=3D"USR1" mail/rspamd-devel/files/rspamd_redirector.in:sig_reload=3D"USR1" mail/rspamd/files/rspamd.in:sig_reload=3D"HUP" mail/rspamd/files/rspamd_redirector.in:sig_reload=3D"USR1" net-mgmt/icinga-core/files/icinga.in:sig_reload=3DHUP net-mgmt/icinga2/files/icinga2.in:sig_reload=3DHUP net-mgmt/nagios/files/nagios.in:sig_reload=3DHUP net-mgmt/nagios4/files/nagios.in:sig_reload=3DHUP net-mgmt/nrpe/files/nrpe2.in:sig_reload=3DHUP net/exabgp/files/exabgp.in:sig_reload=3D"USR1" net/exaddos/files/exaddos.in:sig_reload=3D"USR1" net/vncreflector/files/vncreflector.in:sig_reload=3DUSR2 security/openvpn-devel/files/openvpn.in: sig_reload=3DUSR1 run_rc_command reload security/openvpn/files/openvpn.in: sig_reload=3DUSR1 run_rc_command relo= ad security/openvpn/files/openvpn.in: sig_reload=3DUSR2 sysutils/burp/files/burp.in:sig_reload=3D"HUP" sysutils/sec/files/sec.in:sig_reload=3DHUP www/kannel-sqlbox/files/kannel_sqlbox.in:sig_reload=3DSIGUSR1 www/kannel/files/kannel_bearerbox.in:sig_reload=3DSIGUSR1 www/kannel/files/kannel_smsbox.in:sig_reload=3DSIGUSR1 www/kannel/files/kannel_wapbox.in:sig_reload=3DSIGUSR1 www/lighttpd/files/lighttpd.in: sig_reload=3D"INT" www/nghttp2/files/nghttpx.in:sig_reload=3D"USR2" # exec-self reloa= d; Note: future versions have SIGHUP to reload www/nghttp2/files/nghttpx.in: sig_reload=3D"USR1" www/nginx-devel/files/nginx.in: sig_reload=3D"USR2" www/nginx-devel/files/nginx.in: sig_reload=3D"QUIT" www/nginx/files/nginx.in: sig_reload=3D"USR2" www/nginx/files/nginx.in: sig_reload=3D"QUIT" www/ufdbguard/files/ufdbguardd.in: sig_reload=3DUSR1 www/ufdbguard/files/ufdbguardd.in: sig_reload=3DUSR2 www/uwsgi/files/uwsgi.in: sig_reload=3D"TERM" TLDR a generalised solution might be better. --=20 You are receiving this mail because: You are the assignee for the bug.=