1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
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