summaryrefslogtreecommitdiff
path: root/sysutils/tenshi
diff options
context:
space:
mode:
authorwiz <wiz>2015-01-26 23:03:37 +0000
committerwiz <wiz>2015-01-26 23:03:37 +0000
commit8f414697df0859bda8281a9489eb95e7f316d857 (patch)
tree5d5933b457f157e523cd6b45f33728b058a19bd2 /sysutils/tenshi
parent668252a4b4ceb918caeb6015f58c3c75c1ebf50a (diff)
downloadpkgsrc-8f414697df0859bda8281a9489eb95e7f316d857.tar.gz
The SMF default signaling method, :kill, sends a signal to all
processes associated with the service. In the case of tenshi, the refresh method currently uses :kill -HUP, which sends a HUP to the spawned tail process as well as the tenshi process, killing the tail and breaking tenshi. Fix this problem. Bump PKGREVISION. From Paul B. Henson in PR 49607.
Diffstat (limited to 'sysutils/tenshi')
-rw-r--r--sysutils/tenshi/Makefile3
-rw-r--r--sysutils/tenshi/files/smf/manifest.xml2
2 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/tenshi/Makefile b/sysutils/tenshi/Makefile
index c150835518e..664eff07507 100644
--- a/sysutils/tenshi/Makefile
+++ b/sysutils/tenshi/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2015/01/13 22:20:03 bsiegert Exp $
+# $NetBSD: Makefile,v 1.2 2015/01/26 23:03:37 wiz Exp $
#
DISTNAME= tenshi-0.15
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://dev.inversepath.com/download/tenshi/
diff --git a/sysutils/tenshi/files/smf/manifest.xml b/sysutils/tenshi/files/smf/manifest.xml
index 0b3a6c4d768..ec83c1b945d 100644
--- a/sysutils/tenshi/files/smf/manifest.xml
+++ b/sysutils/tenshi/files/smf/manifest.xml
@@ -15,7 +15,7 @@
</dependency>
<exec_method name='start' type='method' exec='@PREFIX@/sbin/tenshi -c @PKG_SYSCONFDIR@/tenshi/tenshi.conf -P @VARBASE@/lib/tenshi/tenshi.pid' timeout_seconds='60' />
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' />
- <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='60' />
+ <exec_method name='refresh' type='method' exec='pkill -HUP -c %{restarter/contract} -n' timeout_seconds='60' />
<property_group name='startd' type='framework'>
<propval name='ignore_error' type='astring' value='signal' />
</property_group>