LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-20-2004, 02:22 PM   #1
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Solaris 10/11 , RHEL 6 ,AIX 7.1
Posts: 185

Rep: Reputation: 32
how squid service be start/restart in slackware


hello

I just configured squid in slackware
but one probleme faced
how squid service be start/restart in slackware

Waiting for reply
 
Old 10-20-2004, 03:04 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
While I am not a Slack user, I would try the following

/etc/init.d/squid start

Works in other distros.
 
Old 10-20-2004, 03:51 PM   #3
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Solaris 10/11 , RHEL 6 ,AIX 7.1
Posts: 185

Original Poster
Rep: Reputation: 32
dear Pcghost

.
Quote:
/etc/init.d/squid start
This works in redhat and other distros but not in salckware

in salckwre u can run some service from
like
/etc/rc.d/rc.sendmail start


but not squid like that

Thanks
 
Old 10-20-2004, 04:27 PM   #4
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Here is a script i use. Save it as rc.squid, make it executable and place it in /etc/rc.d. Could be you'll have to adjust the path.
Code:
#!/bin/sh
# Start/stop/restart the squid daemon.
#
squid_start() {
  if [ -x /usr/local/sbin/squid ]; then
    echo "Starting squid daemon:  "
    echo " /usr/local/sbin/squid -f /etc/squid/squid.conf"
    /usr/local/sbin/squid -f /etc/squid/squid.conf
  fi
}

squid_stop() {
  echo "Stopping squid daemon:  "
  killall squid 2> /dev/null
}

squid_restart() {
  squid_stop
  sleep 1
  squid_start
}

case "$1" in
'start')
  squid_start
  ;;
'stop')
  squid_stop
  ;;
'restart')
  squid_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac
 
Old 10-22-2004, 06:42 AM   #5
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Solaris 10/11 , RHEL 6 ,AIX 7.1
Posts: 185

Original Poster
Rep: Reputation: 32
Thanks
rotvogel


I configure the script as u mentioned . by it does not start squid service.

I give message "Starting squid daemon: "

but it does not start squid service.

Any futher suggestion

waiting for
 
Old 10-22-2004, 07:16 AM   #6
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
You'll have to adjust the script to your situation, my squid executable is in /usr/local/sbin and my config is in /etc/squid and is called squid.conf. When these settings are reflecting your situation and squid refuses to start maybe you should look in the log file what's going wrong. That would be cache.log I think. Locations of files are depending on what configure options you used.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'service squid start' gives error logicalfuzz Linux - Networking 4 09-28-2011 04:25 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
How to restart a service in slackware? echojihui Slackware 7 08-31-2004 08:03 PM
Is it possible to start stop and restart a linux service from a webpage? psychodreams Linux - Newbie 3 04-27-2004 01:24 PM
Can't start Squid service. stan georgen Linux - Software 1 11-11-2003 02:25 PM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration