Bug 40109 - sysutils/healthd overwrites startup script
Summary: sysutils/healthd overwrites startup script
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jeh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-02 12:40 UTC by Thomas Hurst
Modified: 2002-07-25 12:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hurst 2002-07-02 12:40:01 UTC
	sysutils/healthd has several command line options not available through
	the config file (as far as I can tell).

	The only way to tweak these is to edit the rc script; however, the port
	installs it as $PREFIX/etc/rc.d/healthd.sh - on upgrading, any previously
	installed and potentially edited script is overwritten, which can cause
	anything from the wrong config file to be loaded, to the daemon restarting
	on an unexpected network interface.

Fix: 

Install healthd.sh.sample.  Let the user merge if needed.
How-To-Repeat: 	Install the port, edit healthd.sh to set, for example, only bind to lo (-l);
	reinstall the port, note the changes are overwritten, so the daemon restarts
	bound to all interfaces.
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-07-02 14:54:20 UTC
Responsible Changed
From-To: freebsd-ports->jeh

over to maintainer
Comment 2 jeh freebsd_committer freebsd_triage 2002-07-02 15:42:53 UTC
According to the make file:

post-install:
        @if [ ! -f ${PREFIX}/etc/rc.d/healthd.sh ]; then \
                ${ECHO} "Installing ${PREFIX}/etc/rc.d/healthd.sh
startup file."; \
                ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/healthd.sh
${PREFIX}/etc/rc.d/healthd.sh; \
        fi

The healthd.sh is only installed if there isn't one there already.

Jim
-- 
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
 X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
jhousley@SimTel.Net  http://www.SimTel.Net
---------------------------------------------------------------------
Unix is very user-friendly.  It's just picky who its friends are.
Comment 3 jeh freebsd_committer freebsd_triage 2002-07-22 20:25:40 UTC
State Changed
From-To: open->feedback

Waiting for an answer from submitter
Comment 4 Thomas Hurst 2002-07-22 22:40:14 UTC
* James E. Housley (jeh@FreeBSD.org) wrote:

> Synopsis: sysutils/healthd overwrites startup script

> http://www.freebsd.org/cgi/query-pr.cgi?pr=40109

a portupgrade -f healthd produces:

pkg_delete: `/usr/pkg/etc/rc.d/healthd.sh' fails original MD5 checksum -
deleted anyway.

Not good.

-- 
Thomas 'Freaky' Hurst  -  freaky@aagh.net  -  http://www.aagh.net/
-
Please keep your hands off the secretary's reproducing equipment.
Comment 5 jeh freebsd_committer freebsd_triage 2002-07-25 12:25:55 UTC
State Changed
From-To: feedback->closed

Problem fixed.