Get "/etc/rc.d/squid status" and "/etc/rc.d/squid restart" to work again
under NetBSD (and other platforms using "/etc/rc.subr"?). Bump package revision because of this fix.
This commit is contained in:
parent
d576f69cd5
commit
935985957a
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.35 2014/08/28 16:52:02 adam Exp $
|
||||
# $NetBSD: Makefile,v 1.36 2014/08/29 11:13:46 tron Exp $
|
||||
|
||||
DISTNAME= squid-3.4.7
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.squid-cache.org/Versions/v3/${PKGVERSION_NOREV:R}/ \
|
||||
ftp://ftp.squid-cache.org/pub/squid/ \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!@RCD_SCRIPTS_SHELL@
|
||||
#
|
||||
# $NetBSD: squid.sh,v 1.1 2013/12/10 14:48:26 adam Exp $
|
||||
# $NetBSD: squid.sh,v 1.2 2014/08/29 11:13:46 tron Exp $
|
||||
#
|
||||
# PROVIDE: squid
|
||||
# REQUIRE: DAEMON
|
||||
|
@ -16,12 +16,12 @@ name="squid"
|
|||
rcvar=$name
|
||||
command="@PREFIX@/sbin/${name}"
|
||||
pidfile="@VARBASE@/run/${name}.pid"
|
||||
procname="squid-1"
|
||||
required_files="${squid_conf} @PKG_SYSCONFDIR@/mime.conf"
|
||||
command_args="-Y -f ${squid_conf}"
|
||||
|
||||
start_precmd='ulimit -n 4096'
|
||||
# Note: 'shutdown' waits 30 seconds, while 'interrupt' stops immediately
|
||||
stop_cmd="${command} ${squid_flags} ${command_args} -k interrupt"
|
||||
reload_cmd="${command} ${squid_flags} ${command_args} -k reconfigure"
|
||||
rotate_cmd="${command} ${squid_flags} ${command_args} -k rotate"
|
||||
createdirs_cmd="${command} ${squid_flags} ${command_args} -z"
|
||||
|
|
Loading…
Reference in a new issue