Commit graph

8 commits

Author SHA1 Message Date
Dmitry Sivachenko
dd2827e894 If running with nbproc > 1, haproxy spawns several processes and writes their
pids to $pidfile (one pid per line).
Our check_pidfile() from rc.subr will get only first pid and use it for
stop/status/etc which is incorrect.

Do not use pidfile for that, rather use $procname to get the list of running
haproxy processes.

[If you know how to do the same with pidfile, please tell me.]
2013-10-04 12:37:58 +00:00
Chris Rees
65ec3f23db Remove superfluous setting of rc_flags, and remove single
commands from functions

Use standard message in _reload when not running

Several microoptimisations and style fixes

Approved by:	demon (maintainer)
Feature safe:	yes
2012-10-14 11:46:52 +00:00
Dmitry Sivachenko
ab84524d86 Use 'configtest' command to test config file to be consistent with apache,
nagios and others.  Do not invent yet another wheel.

Feature safe: yes
2012-10-12 14:01:04 +00:00
Dmitry Sivachenko
0cf5d27d31 Add $FreeBSD$;
Add LOGIN to REQUIRE;
replace echo + return with err.

Suggested by:	dougb
2012-06-05 17:45:41 +00:00
Alex Kozlov
1d801e61ab - Add return codes to rc.d script
PR:	ports/168449
Submitted by:	Boris Kochergin <spawk@acm.poly.edu>
Approved by:	demon (maintainer), eadler, itetcu (mentors, implicit)
2012-06-05 11:09:16 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Wen Heping
b9f63461f0 - Update to 1.4.1
- Pass maintainer to submitter

PR:		ports/144331
Submitted by:	Ross West <freebsd@linepoint.com> (new maintainer)
2010-03-16 01:39:45 +00:00