[help] giman cara restart squid?

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
metabee
Posts: 11
Joined: 27 May 2010, 06:37

[help] giman cara restart squid?

Postby metabee » 15 Jun 2010, 13:03

rekan -rekan semua saya minta tolong.....

saya coba me-restart squid dengan perintah /etc/init.d/squid restart

tapi malah muncul error

Code: Select all

root@metabee:~# /etc/init.d/squid restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service squid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart squid
squid start/running, process 4543
root@metabee:~#


saya pake ubuntu server 10.04..........

Mohon bantuannya Ya?
bagaimana cara merestart squid dan cara cek proses squid sedang berjalan atau tidak

thx....
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: [help] giman cara restart squid?

Postby Rh354 » 15 Jun 2010, 13:17

service squid restart

cek squid lg running ato ga' silahkan make

squidclient mgr:info
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: [help] giman cara restart squid?

Postby blackshirt » 15 Jun 2010, 14:50

rekan -rekan semua saya minta tolong.....

saya coba me-restart squid dengan perintah /etc/init.d/squid restart

tapi malah muncul error

itu bukan error, cuma warning biasa..karena ada "peralihan" cara dari sysvinit ke upstart init yang digunakan ubuntu 10.04...
User avatar
zerofreedom
Posts: 176
Joined: 05 Jun 2010, 09:58

Re: [help] giman cara restart squid?

Postby zerofreedom » 15 Jun 2010, 15:20

kurang sudo kali om.. :D
sudo /etc/init.d/squid restart

CMIIW
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: [help] giman cara restart squid?

Postby Rh354 » 15 Jun 2010, 15:22

zerofreedom wrote:kurang sudo kali om.. :D
sudo /etc/init.d/squid restart

CMIIW
klo masuk mode root lsg aja om :blush:
User avatar
zerofreedom
Posts: 176
Joined: 05 Jun 2010, 09:58

Re: [help] giman cara restart squid?

Postby zerofreedom » 15 Jun 2010, 15:26

eh, iya gak liat =))
sorry ya ... :D
User avatar
metabee
Posts: 11
Joined: 27 May 2010, 06:37

Re: [help] giman cara restart squid?

Postby metabee » 19 Jun 2010, 20:51

blackshirt wrote:
rekan -rekan semua saya minta tolong.....

saya coba me-restart squid dengan perintah /etc/init.d/squid restart

tapi malah muncul error

itu bukan error, cuma warning biasa..karena ada "peralihan" cara dari sysvinit ke upstart init yang digunakan ubuntu 10.04...


oh iya ...Betul Mas sekarang command squid di ubuntu 10.04 menggunakan upstart job
Thx atas jawabannya Mas! :grin:
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] giman cara restart squid?

Postby zitux » 28 Jul 2010, 07:18

tanya'
biasanya kan pake

Code: Select all

/etc/init.d/squid restart
atau stop dan start

klo misal mau pake upstart job
comand nya gimana ?
tq
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: [help] giman cara restart squid?

Postby Rh354 » 28 Jul 2010, 09:42

cek post gw yg awal om :D
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] giman cara restart squid?

Postby zitux » 28 Jul 2010, 10:10

waduh dah tak cari postingan nya mulai halaman 26 s/d 1 kayak nya gak pernah bahas upstart jon :grin: klo kelewatan kali :blush:
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] giman cara restart squid?

Postby zitux » 28 Jul 2010, 10:16

Code: Select all

service squid restart
:D kirain posting awal2 dulu :D

misal restart bind9 pake upstart job

Code: Select all

service bind9 restart

samba

Code: Select all

service smbd restart
:grin:
hehe
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: [help] giman cara restart squid?

Postby Rh354 » 28 Jul 2010, 10:38

zitux wrote:waduh dah tak cari postingan nya mulai halaman 26 s/d 1 kayak nya gak pernah bahas upstart jon :grin: klo kelewatan kali :blush:
rajin amat si om :)
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] giman cara restart squid?

Postby zitux » 28 Jul 2010, 11:03

:blush:
User avatar
imadukdien
Posts: 1
Joined: 06 Jul 2010, 08:13
Location: banyuwangi
Contact:

Re: [help] giman cara restart squid?

Postby imadukdien » 28 Jul 2010, 14:01

klo masuk mode root lsg
User avatar
khresnow
Posts: 16
Joined: 08 Aug 2010, 18:25
Location: batavia, ina

Re: [help] giman cara restart squid?

Postby khresnow » 17 Aug 2010, 18:59

dari pada bikin thread baru, mending numpang disini aja ah... :)

kalo mau bikin squid running otomatis setelah start up gimana ya Bro? Ane udah masukin ke 'Auto Start Program', tapi tetep aja gak mau jalan. baru setelah di 'sudo /etc/init.d/squid3 restart' baru mau jalan...

tolongin yaaa....
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [help] giman cara restart squid?

Postby thrvers » 17 Aug 2010, 19:42

'
squid auto start bro :D
nda sah masukin auto-start dah jalan ==> depaul dah masuk runlevel (klo dilihat ada di /etc/rc*.d/)

-*-
User avatar
khresnow
Posts: 16
Joined: 08 Aug 2010, 18:25
Location: batavia, ina

Re: [help] giman cara restart squid?

Postby khresnow » 17 Aug 2010, 20:01

@ bro thrvers : cobain dulu ya bro...nanti di report-in
User avatar
khresnow
Posts: 16
Joined: 08 Aug 2010, 18:25
Location: batavia, ina

Re: [help] giman cara restart squid?

Postby khresnow » 17 Aug 2010, 20:27

@ bro thrvers : sori banget ya...ane nubi banget soalnya.
maksudnya, kita tambahin script 'squid auto start' nya di sebelah mana? ane nemu file di /etc/rc0.d/k30squid3 yang isinya kayak gini :

#! /bin/sh
#
# squid3 Startup script for the SQUID HTTP proxy-cache.
#
# Version: @(#)squid3.rc 1.0 07-Jul-2006 luigi@debian.org
#
### BEGIN INIT INFO
# Provides: squid3
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Squid HTTP Proxy version 3.0
### END INIT INFO

NAME=squid3
DESC="Squid HTTP Proxy 3.0"
DAEMON=/usr/sbin/squid3
PIDFILE=/var/run/$NAME.pid
CONFIG=/etc/squid3/squid.conf
SQUID_ARGS="-D -YC -f $CONFIG"

[ ! -f /etc/default/squid3 ] || . /etc/default/squid3

. /lib/lsb/init-functions

PATH=/bin:/usr/bin:/sbin:/usr/sbin

[ -x $DAEMON ] || exit 0

ulimit -n 65535

find_cache_dir () {
w=" " # space tab
res=`sed -ne '
s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' /dev/null`
start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
#
# Now we have to wait until squid has _really_ stopped.
#
sleep 2
if test -n "$PID" && kill -0 $PID 2>/dev/null
then
log_action_begin_msg " Waiting"
cnt=0
while kill -0 $PID 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 24 ]
then
log_action_end_msg 1
return 1
fi
sleep 5
log_action_cont_msg ""
done
log_action_end_msg 0
return 0
else
return 0
fi
}

case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
if stop ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
log_action_msg "Reloading $DESC configuration files"
start-stop-daemon --stop --signal 1 \
--pidfile $PIDFILE --quiet --exec $DAEMON
log_action_end_msg 0
;;
restart)
log_daemon_msg "Restarting $DESC" "$NAME"
stop
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}"
exit 3
;;
esac

exit 0
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [help] giman cara restart squid?

Postby thrvers » 17 Aug 2010, 20:42

'
yup file tsb kn ada di folder rc0.d berarti dah dah dimasukin runlevel yg akan dijalankan waktu startup (nda perlu tambah2in lagi)

cmiiw
User avatar
khresnow
Posts: 16
Joined: 08 Aug 2010, 18:25
Location: batavia, ina

Re: [help] giman cara restart squid?

Postby khresnow » 17 Aug 2010, 20:58

* sepertinya emang dah start bro....ane taunya, kalo pas shutdown, ada tulisan 'squid start...bla...bla...bla...' trus 'squid shutdown...bla...bla...'
cuma pas ane buka browser, gak mau buka homepage ane (http://www.google.co.id). baru ane ketik 'sudo /etc/init.d/squid3 restart'...mau deh tuh homepage ke buka...
sori ya kalo ngrepotin....

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 1 guest