Commit graph

15 commits

Author SHA1 Message Date
Peter Pentchev
fd6405d10d Add a knob to disable the run-time testsuite, e.g. when building with
a NFS-mounted work directory (prompted by PR 115100).
Add support for logging through multilog instead of readproctitle for
the main svscan process and document the startup script variables
(loosely based on PR 111749).

PR:		111749, 115100
Submitted by:	Andrew Hammond<andrew.george.hammond@gmail.com>,
		Charles Sprickman <spork@bway.net>
2007-10-30 10:49:16 +00:00
Doug Barton
c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00
Peter Pentchev
0f300e2a91 Skip directories with names starting with a dot. [1]
Wihle I'm here, add a STARTUP_SCRIPT knob to specify a different name for
the etc/rc.d/svscan.sh script, e.g. allowing a name like 000.svscan.sh.

PR:		81677 [1]
Submitted by:	Renato Botelho <freebsd@galle.com.br> [1]
2005-06-07 11:05:09 +00:00
Peter Pentchev
1f6537967d Remove the duplicate 'Stopping svscan' message on shutdown.
Fix the URL in pkg-descr.
Bump PORTREVISION.

PR:		81665
Submitted by:	Renato Botelho <freebsd@galle.com.br>
2005-05-30 11:28:04 +00:00
Peter Pentchev
fc73a3eebe Fix shutdown on older systems: avoid find's '-depth n' primary.
Reported by:	Robin Breathe <robin@isometry.net>
2004-07-30 17:40:18 +00:00
Peter Pentchev
87f39b0573 Make the startup script also work on older versions of FreeBSD which
lack the daemon(8) utility.
2004-07-27 06:27:07 +00:00
Peter Pentchev
648cd0ea13 - make this script work with the New World Order in /etc/rc.d/localpkg,
where the config files may have been loaded already and our load_rc_config
  invocation may do nothing: thus, we need to honor any previously set value
  of svscan_enable;
- for some reason svscan_stop_post() does not like the IFS-like vars set by
  rc.subr and localpkg; use find/xargs instead of having the shell parse its
  own output;
- dequote COMMENT;
- fix the daemon(8)-ization by moving 2>&1 to its proper place, so that the
  errors from svscan are actually picked up by readproctitle, as explained
  in <20040630175050.GD979@straylight.m.ringlet.net>;
- move the 'Starting svscan' message to its proper place, so that the PATH
  set by env(1) affects svscan, not the echo command :)
2004-07-26 12:48:44 +00:00
Norikatsu Shigemura
6405ace67d Oops, I forgot to add "print stop message". 2004-07-25 08:54:56 +00:00
Norikatsu Shigemura
ff622b2d5d o portlint clean. [1]
o print start message. [1]
o daemon(8)'ify. [2]
o bump PORTREVISION accordingly.

PR:		ports/68558 [1]
Submitted by:	Renato Botelho <renato@galle.com.br> [1]
		myself [2]
Reviewed by:	roam [2]
Approved by:	roam (blanket)
2004-07-25 08:52:51 +00:00
Peter Pentchev
ee6be7e1f6 Switch from using /bin/csh to /bin/sh, as suggested on -ports. 2004-06-28 23:56:18 +00:00
Peter Pentchev
722d36ed3b USE_RC_SUBR.
Submitted by:	nork
2004-06-28 23:07:40 +00:00
Peter Pentchev
51aa799051 Tweak the startup script so that it is *really* a FreeBSD startup
script; that is, add 'start|stop' argument processing and
the ability to actually stop the script.
Bump PORTREVISION to indicate a functionality change - or rather,
to indicate a change that actually makes this a FreeBSD port..

Final push by:	Dan Langille <dan@langille.org> in a somewhat
		unrelated e-mail exchange
Obtained from:	a svscan SysV init script that I somehow managed
		to lose the source and URL for :(
2002-01-28 19:37:14 +00:00
Peter Pentchev
5d9acace80 Update to 0.76.
Assume maintainership.

Reviewed by:	nbm
Approved by:	nbm
2002-01-04 14:38:13 +00:00
Peter Pentchev
5069db76e5 Almost revert a change made in daemontools-0.70's supervise, where
the one-second sleep between invocations was moved to after the actual
invocation.  This sleep could be interrupted by a SIGCHLD in the case
of a failing service, and the service could be restarted way more than
the documented once-per-second.  Move the sleep back before the fork(),
just don't sleep before the very first fork, so the service starts faster.

Silence by:	Daniel J. Bernstein (no telling if he'll fix this in later
		daemontools releases, so I guess we'll have to do it as part
		of our port..)
Approved by:	nbm (maintainer)
2001-05-10 07:10:24 +00:00
Neil Blakey-Milner
38d0ebaebf Add a sample rc file for svscan startup, in partial fulfillment of the
PR.  I'll leave the creation of the directory, whatever it may be, to
the user.

PR:		ports/19191
Submitted by:	Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>
2000-06-22 09:22:15 +00:00