--- watchcatd-1.2.1.orig/Makefile +++ watchcatd-1.2.1/Makefile @@ -32,13 +32,13 @@ install: strip catmaster catslave install -d $(PREFIX)/lib/watchcatd - install -d $(PREFIX)/man/man5 - install -d $(PREFIX)/man/man8 + install -d $(PREFIX)/share/man/man5 + install -d $(PREFIX)/share/man/man8 install -m0755 catmaster $(PREFIX)/lib/watchcatd install -m0755 catslave $(PREFIX)/lib/watchcatd - install -m0600 watchcatd.prod.conf /etc/watchcatd.conf - install -m0644 watchcatd.8 $(PREFIX)/man/man8/ - install -m0644 watchcatd.conf.5 $(PREFIX)/man/man5/ + install -m0600 watchcatd.prod.conf $(PREFIX)/../etc/watchcatd.conf + install -m0644 watchcatd.8 $(PREFIX)/share/man/man8/ + install -m0644 watchcatd.conf.5 $(PREFIX)/share/man/man5/ clean: rm -f *.o *.c~ *.h~ *.conf~ *.[0-9]~ catmaster catslave --- watchcatd-1.2.1.orig/watchcatd.prod.conf +++ watchcatd-1.2.1/watchcatd.prod.conf @@ -6,7 +6,7 @@ realtime = true priority = 1 -user = watchcat +user = www-data @@ -15,7 +15,7 @@ # master_debug_level = 61 -master_pid_file = /var/run/catmaster.pid +master_pid_file = /run/catmaster.pid @@ -24,6 +24,6 @@ # slave_debug_level = 472 -slave_device = /var/run/watchcat.socket +slave_device = /run/watchcat.socket slave_max_connections = 1014 # 1k (connections) - 10 (internal use) slave_max_connections_per_pid = 1 --- watchcatd-1.2.1.orig/debian/copyright +++ watchcatd-1.2.1/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Cyril Bouthors on +Thu Nov 11 21:32:29 CET 2010 + +It was downloaded from + +Upstream Author: + + Michel Machado + Andre Nathan + +Copyright: + + Copyright (c) 2004 Digirati. + +License: + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License (GPL) as published by the Free +Software Foundation. + +On Debian systems, the GNU GPL can be found at +/usr/share/common-licenses/GPL --- watchcatd-1.2.1.orig/debian/lintian-overrides +++ watchcatd-1.2.1/debian/lintian-overrides @@ -0,0 +1,5 @@ +watchcatd: hardening-no-relro usr/bin/catmaster +watchcatd: hardening-no-fortify-functions usr/bin/catmaster +watchcatd: hardening-no-relro usr/lib/watchcatd/catslave +watchcatd: hardening-no-fortify-functions usr/lib/watchcatd/catslave +watchcatd: binary-without-manpage usr/bin/catmaster --- watchcatd-1.2.1.orig/debian/rules +++ watchcatd-1.2.1/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +export PREFIX=/usr + +%: + dh $@ + +override_dh_auto_install: + cp catmaster debian/watchcatd/usr/bin + cp catslave debian/watchcatd/usr/lib/watchcatd + cp watchcatd.prod.conf debian/watchcatd/etc/watchcatd.conf + cp watchcatd.8 debian/watchcatd/usr/share/man/man8 + cp watchcatd.conf.5 debian/watchcatd/usr/share/man/man5 --- watchcatd-1.2.1.orig/debian/init +++ watchcatd-1.2.1/debian/init @@ -0,0 +1,48 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: watchcatd +# Required-Start: $syslog $time $remote_fs +# Required-Stop: $syslog $time $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Process monitoring daemon +# Description: Debian init script for the watchcatd process monitoring +# daemon +### END INIT INFO +# +# Author: Cyril Bouthors +# + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +DAEMON=/usr/bin/catmaster +PIDFILE=/var/run/catmaster.pid + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting process monitoring daemon" "watchcatd" + start_daemon -p $PIDFILE $DAEMON + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping process monitoring daemon" "watchcatd" + killproc -p $PIDFILE $DAEMON + log_end_msg $? + ;; + force-reload|restart) + $0 stop + $0 start + ;; + status) + status_of_proc -p $PIDFILE $DAEMON watchcatd && exit 0 || exit $? + ;; + *) + echo "Usage: /etc/init.d/watchcatd {start|stop|restart|force-reload|status}" + exit 1 + ;; +esac + +exit 0 --- watchcatd-1.2.1.orig/debian/dirs +++ watchcatd-1.2.1/debian/dirs @@ -0,0 +1,5 @@ +usr/bin +usr/lib/watchcatd +etc +usr/share/man/man8 +usr/share/man/man5 --- watchcatd-1.2.1.orig/debian/compat +++ watchcatd-1.2.1/debian/compat @@ -0,0 +1 @@ +7 --- watchcatd-1.2.1.orig/debian/control +++ watchcatd-1.2.1/debian/control @@ -0,0 +1,18 @@ +Source: watchcatd +Section: admin +Priority: optional +Build-Depends: debhelper (>= 7.0.50~), libevent-dev, dpkg-dev (>= 1.16.1~) +Maintainer: Cyril Bouthors +Uploaders: Cyril Bouthors +Standards-Version: 3.9.4 +Homepage: http://oss.digirati.com.br/watchcatd/ + +Package: watchcatd +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Process monitoring daemon + A bug or malicious attacks to machine can lock up a process, leading to a + deadlock or an unexpected condition. For example: an Apache httpd with + mod_(php|perl|lua|your_preferred_script_language) running a bad script. When + the monitored process locks up, the watchcat helps killing him. It is the best + thing to do. --- watchcatd-1.2.1.orig/debian/changelog +++ watchcatd-1.2.1/debian/changelog @@ -0,0 +1,17 @@ +watchcatd (1.2.1-3) unstable; urgency=low + + * Use /run instead of /var/run + + -- Cyril Bouthors Wed, 24 Apr 2013 15:25:36 +0200 + +watchcatd (1.2.1-2) unstable; urgency=low + + * Fixed issue with recent glibc and sent patch upstream + + -- Cyril Bouthors Tue, 23 Apr 2013 23:38:54 +0200 + +watchcatd (1.2.1-1) unstable; urgency=low + + * Initial Release. (Closes: #603218) + + -- Cyril Bouthors Tue, 23 Apr 2013 19:07:01 +0200