Commit graph

39 commits

Author SHA1 Message Date
Peter Pentchev
e2e37bad7d It seems that the thedjbway.org domain has expired, so the sigq12 patch
has lost its home.  Host it on my FreeBSD local distfiles site for
the present until I find out who has a more permanent home for it.

Reported by:	Valentin Zahariev <curly@e-card.bg>
2010-01-07 12:07:19 +00:00
Peter Pentchev
2aaa1724aa Fix another instance of replacing %%DAEMON%% with /usr/sbin/daemon,
somehow missed by dougb - still, thanks for doing it :)  However,
drop the -f option to daemon - with both readproctitle and
multilog, we definitely do *not* want to lose svscan's output.

While I'm here, restore the spirit of the STARTUP_SCRIPT functionality
removed in pgollucci's rc.subr change by introducing the S_NORMAL and
S_EARLY option knobs and modifying the startup script's REQUIRE and
BEFORE settings accordingly.

Add short descriptive headers to the patches and bump PORTREVISION
for the real changes.

Reported by:	Valentin Zahariev <curly@e-card.bg> (the daemon part)
2010-01-06 11:07:54 +00:00
Peter Pentchev
5ebf1e964b Restore the checksums for the sigq12 patch inadvertently lost in
pgollucci's RC_SUBR change.
2010-01-06 09:49:53 +00:00
Doug Barton
f8bb980036 Fix startup script by filling in /usr/sbin/daemon -f instead of the
pointlessly obscure %%DAEMON%%.

Problem pointed out by:	garga
2010-01-05 06:24:31 +00:00
Philip M. Gollucci
f65bb6b637 - USE_RC_SUBR != yes
PR:             ports/136851
Approved by:    maintainer timeout (roam; > 6 months)
Submitted by:   myself (pgollucci @)
2010-01-04 05:15:37 +00:00
Pav Lucistnik
b2a96c6df1 - Remove conditional checks for FreeBSD 5.x and older 2009-01-06 17:59:31 +00:00
Ade Lovett
ca8d18b176 As per http://cr.yp.to/distributors.html, effective 2008-08-05,
remove RESTRICTED on these ports - they are free to roam wild.
2008-08-05 13:51:31 +00:00
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
Edwin Groothuis
4d5623ea35 Remove support for OSVERSION < 5 2007-10-04 00:08:39 +00:00
Peter Pentchev
ab4732f429 Add the sigq12 patch, which allows the svc utility to tell supervise to
send SIGQUIT, SIGUSR1, or SIGUSR2 to the daemon process.
OPTIONS'ify - all but the STARTUP_SCRIPT variable, which is a string,
not a flag.
Appease portlint partially - unquote the RESTRICTED message.
Bump PORTREVISION.

Requested by:	"Brent B. Powers" <bbp2006@columbia.edu> (the sigq12 patch)
2006-09-25 11:44:38 +00:00
Kris Kennaway
b50253f5f2 RESTRICTED is intended here instead of NO_PACKAGE 2006-09-03 17:36:56 +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
Edwin Groothuis
32487a10ad SHA256ify
Approved by: krion@
2006-01-24 01:06:45 +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
33059bd045 Remove pkg-comment files in my ports. 2003-02-19 16:07:30 +00:00
Peter Pentchev
ba40505c14 Install the sample startup script directly to etc/rc.d/, instead of
putting it into the examples directory, where next to nobody found it.

Requested by:	Dan Langille <dan@langille.org>,
		Antoine Beaupre <anarcat@anarcat.ath.cx> - both months ago
2003-01-17 15:06:24 +00:00
Peter Pentchev
863b8c0aed Install Gerritt Pape's manual pages unless WITHOUT_MAN is defined.
Properly remove the sample svscan.sh script at deinstall time.
2002-02-07 14:57:58 +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
Steve Price
edbee7c0b8 Put the NO_PACKAGE strings in double quotes to the escaped single quote
becomes just a single quote instead \'.
2000-12-03 05:16:41 +00:00
Neil Blakey-Milner
eba8075a32 Add the ftp version of the MASTER_SITE, since it is available. 2000-07-29 16:27:31 +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
Neil Blakey-Milner
89b0981b2e Update to (non-backwards-compatible) daemontools 0.70, and take over
MAINTAINERship.

PR:		16580
2000-04-27 21:43:43 +00:00
Michael Haro
960543ecef Corrrect whitespace introduced during PORTNAME conversion and portlint 2000-04-22 10:14:11 +00:00
Chris Piazza
f9bfad56c5 Update with the new PORTNAME/PORTVERSION variable 2000-04-09 19:09:11 +00:00
Peter Wemm
8100143543 $Id$ -> $FreeBSD$ 1999-08-31 02:00:46 +00:00
Tim Vanderhoek
a84b5b5f94 #4/4 enforcing Caps, no period
[Has anyone figured-out what makes the number 393 so interesting to PW, now?]

I wonder what was going through Jordan's head during his infamous
$Id$-smashing commit.

Before I forget....

Thanks to naddy@mips.rhein-neckar.de (Christian Weisgerber) for prompting
this commit.  See msg-id: 7geokh$tje$1@mips.rhein-neckar.de
1999-06-26 19:22:14 +00:00
Michael Haro
e9792ecbd0 Add more WWW: tags
I must really like taking on sick tasks.  First gtk, now this.
1999-05-03 04:21:58 +00:00
Tim Vanderhoek
1980dcdff7 These manpages removed by Tim Vanderhoek. 1998-08-19 20:43:24 +00:00
Donald Burr
b56ad45c73 PR: ports/6899
Submitted by:	Dom Mitchell <dom@myrddin.demon.co.uk>
Import of new port sysutils/daemontools, a set of
service (daemon) monitoring and logging tools.
1998-06-16 07:47:03 +00:00