Version 4.0 of supervise-scripts is now available at: http://untroubled.org/supervise-scripts/ ------------------------------------------------------------------------------ Changes in version 4.0 - Added svc-build, for initially creating services. - Added svc-kill, to send named signals to services. - Modified svc-start to ignore the stick bit on services in favor of just looking at the log subdirectory. Assumes daemontools-0.76. - Added a -k option to svc-stop to make it kill services that don't stop. Development of this version has been sponsored by FutureQuest, Inc. ossi@FutureQuest.net http://www.FutureQuest.net/ ------------------------------------------------------------------------------- supervise-scripts version 4.0 2010-01-13 Copyright (C) 2010 Bruce Guenter http://untroubled.org/supervise-scripts/ This package is a set of scripts that may be useful for starting and stopping programs that are managed by supervise and svscan, which are part of the daemontools package. daemontools was written by D. J. Bernstein and can be found at http://cr.yp.to/daemontools.html A mailing list has been set up to discuss this and other packages. To subscribe, send an email to: bgware-subscribe@lists.untroubled.org A mailing list archive is available at: http://lists.untroubled.org/?list=bgware Development versions of supervise-scripts are available via git at: http://untroubled.org/git/supervise-scripts.git Installing ---------- These scripts expect svscan to be started by init. To do this, run "make install-config". After you have done this step, or if you are installing from the RPM, you need to make init start svscan. You can do this by either rebooting, or by typing "telinit q" or "kill -1 1" to make init re-read its configuration file. Upgrading --------- supervise-scripts version 3 is functionally compatible with version 2 and up. No changes to startup scripts should be necessary. You will, however, need to ensure that the old svscan process is stopped. Doing so will also stop all running services. Intended Usage -------------- Create a new service directory somewhere other than under /service. Set up a "run" script, and a "log" directory with its own "run" script if appropriate. Use "svc-add" to add the new service into /service for the first time. Add the "-d" option if you don't want it to run right away (this is the equivalent of doing "chkconfig --add" on SysVinit systems). Use "svc-start" to start the service the first time. If you reboot, it will be automatically restarted without any need for intervention. Use "svc-stop" if you need to stop the service (for maintenance). If you reboot after doing this, the service will not be restarted. Use "svc-remove" before uninstalling the software. Copyright --------- This package 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 package 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 package; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.