On Friday 15 June 2001 09:52, Pemain Baru wrote:
> jalanin squid -z kok can't find user squid yach ??
Mestinyakamu tambahkan user squid tersebut dengan command
# useradd squid
Saya malah ada masalah aneh.. setelah kemarin salah di squid.conf..
Sekarang squid.conf udah mau jalan. tetapi kenapa hanya mau dijalankan oleh
user nobody dan group nogroup ? Bukankah harusnya user squid atau root ?
Terus kalau sudah dijalankan, kok kalau di shutdown dengan command
/usr/sbin/squid -k shutdown nggak mau shutdown..
Terpaksa dengan /sbin/killproc /usr/sbin/squid
O BTW, squid saya adalah versi 2.4.STABLE1 dan menggunakan SuSE 7.0
init scriptnya menggunakan versi SuSE yang seperti ini:
#! /bin/sh
# Copyright (c) 1996-99 SuSE Gmbh Nuernberg, Germany. All rights reserved.
#
# Author: Florian La Roche
#
# /sbin/init.d/squid
#
. /etc/rc.config
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START_SQUID=yes
test "$START_SQUID" = yes || exit 0
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
start)
if [ ! -d /var/squid/cache/00 ] ; then
echo "Initializing the cache for the WWW-proxy squid."
/usr/sbin/squid -z
fi
echo -n "Starting WWW-proxy squid:"
startproc -l /var/squid/squid.out /usr/sbin/squid -sYD ||
return=$rc_failed
sleep 1
echo -e "$return"
;;
stop)
echo -n "Shutting down WWW-proxy squid:"
/usr/sbin/squid -k shutdown 2>/dev/null
if [ $? -eq 0 ] ; then
i=60
echo -n " wait a minute for squid to shutdown "
while [ -e /var/run/squid.pid ] && [ $i -gt 0 ] ; do
sleep 1
i=$[$i-1]
done
if checkproc /usr/sbin/squid ; then
killproc /usr/sbin/squid
echo -ne "\nWarning: squid killed, didn't shutdown after 1 min"
return=$rc_failed
fi
else
return=$rc_failed
fi
echo -e "$return"
;;
status)
echo -n "Checking for WWW-proxy squid: "
checkproc /usr/sbin/squid && echo OK || echo No process
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
reload)
echo -n "Reloading WWW-proxy squid:"
/usr/sbin/squid -k reconfigure -k rotate || return=$rc_failed
echo -e "$return"
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
esac
# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0
---end of script ---
Anehnya, kalau dikill dengan init script ini, squidnya restart dengan
sendirinya. Kalau menggunakan killproc secara manual, baru mau stop.
Adakah yang kurang lagi dengan cara setup saya. Configure scriptnya tetap
menggunakan yang pernah saya sampaikan. Dan sudah saya patch dengan patch
yang tersedia di www.squid-cache.org
--
Best regards,
Romie Djapri
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Dapatkan FAQ milis dg mengirim email kosong ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3