script auto run squid freebsd booting

solusi untuk error squid saat boot yang muncul error seperti dibawah ini

Nov 29 09:07:43 proxy squid[689]: Squid Parent: child process 1387 started
Nov 29 09:07:43 proxy squid[1387]: Squid is already running! Process ID 456
Nov 29 09:07:43 proxy squid[689]: Squid Parent: child process 1387 exited with status 1
Nov 29 09:07:43 proxy squid[564]: Squid Parent: child process 1397 started
Nov 29 09:07:43 proxy squid[508]: Squid Parent: child process 1398 started
Nov 29 09:07:44 proxy squid[978]: Squid Parent: child process 1427 exited with status 1
Nov 29 09:07:44 proxy squid[598]: Squid Parent: child process 1426 exited with status 1
Nov 29 09:07:44 proxy squid[1333]: Squid Parent: child process 1429 started
Nov 29 09:07:44 proxy squid[1429]: Squid is already running! Process ID 456
Nov 29 09:07:44 proxy squid[1333]: Squid Parent: child process 1429 exited with status 1
Nov 29 09:07:47 proxy squid[689]: Squid Parent: child process 1431 started
Nov 29 09:07:47 proxy squid[1431]: Squid is already running! Process ID 456
Nov 29 09:07:47 proxy squid[689]: Squid Parent: child process 1431 exited with status 1
ov 29 09:07:50 proxy squid[663]: Squid Parent: child process 1512 started
Nov 29 09:07:50 proxy squid[843]: Squid Parent: child process 1513 started
Nov 29 09:07:50 proxy squid[582]: Squid Parent: child process 1514 started
Nov 29 09:07:50 proxy squid[761]: Squid Parent: child process 1515 started
Nov 29 09:07:50 proxy squid[491]: Squid Parent: child process 1516 started
Nov 29 09:07:50 proxy squid[779]: Squid Parent: child process 1517 started
Nov 29 09:07:50 proxy squid[1508]: Squid is already running! Process ID 456
Nov 29 09:07:50 proxy squid[1510]: Squid is already running! Process ID 456
Nov 29 09:07:50 proxy squid[1512]: Squid is already running! Process ID 456



solusinya membuat script sendiri untuk menjalankan squid saat booting yang di letakkan di /usr/local/etc/rc.d/ dengan nama squid.sh dengan isi file dibawah ini.jangan lupa file tersebut di chmod 777 dan di ubah owner file ke squid:squid (chown squid:squid)


#!/bin/sh
bersih=`clear`
cek=`ps -ax`
runsquid=`/usr/local/etc/squid/sbin/squid -sYD`

if ps -ax | grep "sbin/squid -sYD"
then
echo "Squid Starting OK bro!! ^^"
$bersih
else
echo "jalankan squid"
$runsquid
$bersih
fi

Comments :

0 komentar to “script auto run squid freebsd booting”

Posting Komentar

Silahkan menuliskan komentar anda pada opsi Google/Blogger untuk anda yang memiliki akun Google/Blogger.

Silahkan pilih account yang sesuai dengan blog/website anda (LiveJournal, WordPress, TypePad, AIM).

Pada opsi OpenID silahkan masukkan URL blog/website anda pada kotak yang tersedia.

Atau anda bisa memilih opsi Nama/URL, lalu tulis nama anda dan URL blog/website anda pada kotak yang tersedia.

Jika anda tidak punya blog/website, kolom URL boleh dikosongi.


Gunakan opsi 'Anonim' jika anda tidak ingin mempublikasikan data anda. (sangat tidak disarankan). Jika komentar anda berupa pertanyaan, maka jika anda menggunakan opsi ini tidak akan ditanggapi. Lebih baik anda gunakan pilihan dibawah ini:


Jika ingin komentar anda tidak dipublikasi, silahkan klik disini

Masih kesulitan juga membuat komentar? silahkan klik disini

Recent Post Advanced