debian/0000755000000000000000000000000012074420565007173 5ustar debian/init0000644000000000000000000000274012074420565010064 0ustar #! /bin/sh # /etc/init.d/restartd # # Written by Tibor Koleszar . # Modified by Aurélien GÉRÔME . ### BEGIN INIT INFO # Provides: restartd # Required-Start: $syslog $remote_fs # Required-Stop: $syslog $remote_fs # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Restartd daemon init.d script # Description: Use to manage the Restartd daemon. ### END INIT INFO set -e DAEMON=/usr/sbin/restartd PARAMS="" PID="/var/run/restartd.pid" test -x $DAEMON || exit 0 case "$1" in start) echo -n "Starting process checker: " $DAEMON $PARAMS echo "restartd." ;; stop) echo -n "Stopping process checker: " if kill `cat /var/run/restartd.pid 2>/dev/null` >/dev/null 2>&1 then rm -f /var/run/restartd.pid else echo -n "not running: " fi echo "restartd." ;; restart) echo -n "Stopping process checker: " if kill `cat /var/run/restartd.pid 2>/dev/null` >/dev/null 2>&1 then rm -f /var/run/restartd.pid else echo -n "not running: " fi echo "restartd." echo -n "Starting process checker: " $DAEMON $PARAMS echo "restartd." ;; reload|force-reload) echo "Reloading restartd configuration files" kill -HUP `cat /var/run/restartd.pid` ;; *) echo "Usage: /etc/init.d/restartd {start|stop|restart|reload|force-reload}" exit 1 ;; esac exit 0 debian/README.Debian0000644000000000000000000000045412074420565011237 0ustar Note concerning system upgrades ------------------------------- Before issuing any upgrade commands, it is recommended to stop restartd to avoid it to restart its watched deamons. After the upgrade, it is necessary to start it. -- Aurélien GÉRÔME Sat, 22 Jul 2006 00:11:39 +0200 debian/control0000644000000000000000000000111112074420565010570 0ustar Source: restartd Section: utils Priority: extra Maintainer: Alexandre Raymond Build-Depends: debhelper (>= 8.0.0) Standards-Version: 3.9.3 Homepage: https://github.com/ajraymond/restartd Package: restartd Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Process checker and/or restarter Restartd is a daemon for checking running and not running processes. It reads the /proc directory every n seconds and does a POSIX regexp on the process names. You can execute a script or a program if the process is or is not running. debian/rules0000755000000000000000000000067212074420565010260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ debian/compat0000644000000000000000000000000212074420565010371 0ustar 7 debian/changelog0000644000000000000000000000601612074420565011050 0ustar restartd (0.2.3-1) unstable; urgency=low * Project moved out of Debian as the scope is now broader. * Adopting package (closes: #677775). * [debian/control]: - Added myself as the new maintainer. - Updated Standards-Version to 3.9.3. - Updated debhelper version in Build-Depends. * [debian/source/format]: - Moved to new format. * [debian/init]: - Added $remote_fs to required-start/stop, fixes lintian warning. * [debian/watch]: - Added pointer to github upstream. -- Alexandre Raymond Fri, 11 Jan 2013 11:23:51 -0500 restartd (0.2.2) unstable; urgency=low * Fix typos in debian/control and in manpage restartd.8. * Add a French manpage restartd.fr.8. -- Aurélien GÉRÔME Thu, 14 Sep 2006 22:42:57 +0200 restartd (0.2.1) unstable; urgency=low * Add a "-f" option to run restartd in foreground (Closes: #387101). Thanks to frealek , but he says the patch has been done by someone else who I do not know, so I cannot credit that person properly. * Update manpage restartd.8. * Update description in debian/control accordingly with the manpage. * Clean debian/init and make it LSB-compliant. * Clean the code, run indent, and fix typos everywhere. -- Aurélien GÉRÔME Thu, 14 Sep 2006 18:41:32 +0200 restartd (0.2) unstable; urgency=low * Adopt the package (Closes: #358514). * Update to the latest Standards-Version. * Throw away Debian revision number, because it is a native package. * Add README.Debian with a note concerning system upgrades (Closes: #191302). -- Aurélien GÉRÔME Sat, 22 Jul 2006 00:11:39 +0200 restartd (0.1.a-4) unstable; urgency=low * QA upload. * Package is orphaned (#358514); set maintainer to Debian QA Group. * Acknowledge NMU. Closes: #264232, #281179, #281961, #282328. * debian/rules: Add support for DEB_BUILD_OPTIONS=noopt. * debian/changelog: Remove obsolete Emacs local variables. -- Matej Vela Thu, 6 Apr 2006 11:20:04 +0200 restartd (0.1.a-3.1) unstable; urgency=low * NMU to fix packaging problems: - update debhelper usage, standards-version, add force-reload to initscript (closes: #264232); - update FSF address in copyright; - add license pointer to copyright (closes: #281179). * Redirect std* to /dev/null and change cdw to '/' thanks to "Christian G. Warden" for the patch (closes: #281961, #282328). -- Laszlo Boszormenyi (GCS) Fri, 24 Mar 2006 10:53:48 +0100 restartd (0.1.a-3) unstable; urgency=low * Fixed memory leak, forgot regfree(3) after regular expression. Closes: bug#155220 -- Tibor Koleszar Thu, 20 Jun 2002 16:20:31 +0100 restartd (0.1.a-2) unstable; urgency=low * Fixed typos. Closes: bug#150375 -- Tibor Koleszar Thu, 20 Jun 2002 09:28:12 +0100 restartd (0.1.a-1) unstable; urgency=low * Initial release. -- Tibor Koleszar Tue, 11 Jun 2002 14:54:37 +0100 debian/copyright0000644000000000000000000000166712074420565011140 0ustar This package was debianized by Tibor Koleszar on Tue Jun 11 14:57:24 2002 Copyright: Copyright (C) 2000-2002 Tibor Koleszar This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GPLv2 is in the file /usr/share/common-licenses/GPL-2 debian/source/0000755000000000000000000000000012074420565010473 5ustar debian/source/format0000644000000000000000000000001412074420565011701 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000011612074420565010222 0ustar version=3 https://github.com/ajraymond/restartd/tags .*/v(\d[\d\.]+)\.tar\.gz debian/dirs0000644000000000000000000000010112074420565010047 0ustar usr/sbin usr/share/man/man8 usr/share/man/fr/man8 etc etc/init.d