summaryrefslogtreecommitdiff
path: root/network/squid/rc.squid
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2016-03-20 02:50:42 -0500
committerRobby Workman <rworkman@slackbuilds.org>2016-03-20 02:50:59 -0500
commit074a79a5e6e3b30142443f8e505379e59aede74e (patch)
treeb7a025a4d4fc40ff2e8b2011ae3ee046c7c42f21 /network/squid/rc.squid
parent5428260e84b3d097c62b0f37511546beb1bba41c (diff)
downloadslackbuilds-074a79a5e6e3b30142443f8e505379e59aede74e.tar.gz
network/squid: Fixup pid directory creation/usage
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/squid/rc.squid')
-rw-r--r--network/squid/rc.squid4
1 files changed, 4 insertions, 0 deletions
diff --git a/network/squid/rc.squid b/network/squid/rc.squid
index c3a680046e..7aef4777fe 100644
--- a/network/squid/rc.squid
+++ b/network/squid/rc.squid
@@ -32,6 +32,10 @@ squid_start() {
fi
done
+ # Create piddir and set proper permissions
+ mkdir -p /var/run/squid
+ chown root:@SQUIDGROUP@ /var/run/squid
+
echo "Starting Squid: $SQUIDCMD -F"
$SQUIDCMD -F
}