Commit graph

10 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
8a60f74fda Sync with net/haproxy
Requested by:	demon (maintainer)
Feature safe:	yes
2012-10-14 20:58:04 +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
9d207bcffc - Add return codes to rc.d script
PR:	ports/168450
Submitted by:	Boris Kochergin <spawk@acm.poly.edu>
Approved by:	demon (maintainer), eadler, itetcu (mentors, implicit)
2012-06-05 11:12:34 +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
Pav Lucistnik
847bdaad29 - Update to 1.5-dev2
PR:		ports/150193
Submitted by:	Ross West <freebsd@linepoint.com> (maintainer)
2010-09-03 21:49:54 +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
Xin LI
96b14bdcd4 Update to 1.3.14. [1]
Add a 'reload' subcommand to rc.d startup script. [2]

Submitted by:	p.rybicki cadera.com.pl [2]
		delphij [1]
PR:		ports/119755 [1]
Approved by:	maintainer
2008-01-21 07:54:44 +00:00
Marcelo Araujo
4030110f0e - Forgot the new RC script by last commit!
PR:		ports/112934
Approved by:	pav (portmgr, in mentor's absence)
2007-08-05 20:14:02 +00:00
Renamed from net/haproxy-devel/files/haproxy.sh.in (Browse further)