Date: Tue, 31 Jan 2017 14:07:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216675] sysutils/heartbeat: stops the heartbeat service on pkg upgrade Message-ID: <bug-216675-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216675 Bug ID: 216675 Summary: sysutils/heartbeat: stops the heartbeat service on pkg upgrade Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: xavi.garcia@gmail.com CC: ports@encarnate.com CC: ports@encarnate.com Flags: maintainer-feedback?(ports@encarnate.com) The above mentioned port stops the service when the package is being upgrad= ed. Stopping such a sensitive service should be left to sysadmins because they = know the particularities of their setup. For instance, stopping the service may disable a VIP address, leading to an outage or trigger an unwanted failover. The following script is executed on install/deinstall ( according to pkg in= fo -R) ports/head/sysutils/heartbeat/files/pkg-install.in Please, notice that doing a pkg upgrade, we are actually doing a deinstall followed by an install. ---- !/bin/sh PREFIX=3D${PREFIX:-/usr/local} case $2 in DEINSTALL) echo -e "\n\n" # Check for running processes echo -n "Checking if heartbeat is running... " if ps -axc | grep -q heartbeat; then echo -n "FOUND. Stopping... " ${PREFIX}/etc/rc.d/heartbeat forcestop echo "STOPPED" else echo "NO" fi esac EOD; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216675-13>