mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-15 21:11:17 +02:00
32 lines
535 B
Bash
Executable File
32 lines
535 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# PROVIDE: squid
|
|
# REQUIRE: DAEMON
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="squid"
|
|
rcvar="${name}_enable"
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
pidfile="/var/run/${name}/${name}.pid"
|
|
procname="${name}"
|
|
required_files="%%PREFIX%%/etc/${name}/${name}.conf";
|
|
required_dirs="%%SQUID_SWAPDIR%% %%SQUID_LOGDIR%%";
|
|
sig_stop="KILL";
|
|
squid_user='%%SQUID_OWNER%%';
|
|
|
|
|
|
#stop_cmd=squid_stop_cmd
|
|
#
|
|
#squid_stop_cmd() {
|
|
# echo "Stopping ${name}."
|
|
# ${command} -k kill 2> /dev/null
|
|
#}
|
|
|
|
load_rc_config $name
|
|
|
|
: ${squid_enable="NO"}
|
|
|
|
run_rc_command "$1"
|
|
#EOF
|