Thu Jan 31 20:01:13 2008 UTC ()
Fix createdirs command


(adam)
diff -r1.19 -r1.20 pkgsrc/www/squid/files/squid.sh

cvs diff -r1.19 -r1.20 pkgsrc/www/squid/files/Attic/squid.sh (expand / switch to unified diff)

--- pkgsrc/www/squid/files/Attic/squid.sh 2006/06/21 12:10:35 1.19
+++ pkgsrc/www/squid/files/Attic/squid.sh 2008/01/31 20:01:13 1.20
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: squid.sh,v 1.19 2006/06/21 12:10:35 taca Exp $ 3# $NetBSD: squid.sh,v 1.20 2008/01/31 20:01:13 adam Exp $
4# 4#
5 5
6# PROVIDE: squid 6# PROVIDE: squid
7# REQUIRE: DAEMON 7# REQUIRE: DAEMON
8# KEYWORD: shutdown 8# KEYWORD: shutdown
9 9
10conf_file="@PKG_SYSCONFDIR@/squid.conf" 10conf_file="@PKG_SYSCONFDIR@/squid.conf"
11 11
12name="squid" 12name="squid"
13rcvar=$name 13rcvar=$name
14command="@PREFIX@/sbin/${name}" 14command="@PREFIX@/sbin/${name}"
15pidfile="@VARBASE@/run/${name}.pid" 15pidfile="@VARBASE@/run/${name}.pid"
16required_files="${conf_file} @PKG_SYSCONFDIR@/mime.conf" 16required_files="${conf_file} @PKG_SYSCONFDIR@/mime.conf"
@@ -44,27 +44,27 @@ stop_nicely () @@ -44,27 +44,27 @@ stop_nicely ()
44 break 44 break
45 fi 45 fi
46 done 46 done
47 @ECHO@ '].' 47 @ECHO@ '].'
48 unset WAIT 48 unset WAIT
49 fi 49 fi
50 unset DAEMON_PID 50 unset DAEMON_PID
51 fi 51 fi
52} 52}
53 53
54# create the squid cache directories 54# create the squid cache directories
55squid_createdirs() 55squid_createdirs()
56{ 56{
57 ${start_cmd} -z 57 ${command} -z
58} 58}
59 59
60if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then 60if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
61 . /etc/rc.subr 61 . /etc/rc.subr
62 . /etc/rc.conf 62 . /etc/rc.conf
63 63
64 extra_commands="createdirs reload rotate" 64 extra_commands="createdirs reload rotate"
65 load_rc_config $name 65 load_rc_config $name
66 run_rc_command "$1" 66 run_rc_command "$1"
67 67
68else # old NetBSD, Solaris, Linux, etc... 68else # old NetBSD, Solaris, Linux, etc...
69 69
70 case $1 in 70 case $1 in