Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shutdown squid via web page
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tux43
n00b
n00b


Joined: 14 May 2004
Posts: 24

PostPosted: Mon Feb 28, 2011 10:30 am    Post subject: Shutdown squid via web page Reply with quote

All,

I would like to be able to shutdown squid (/etc/init.d/squid stop) via a web URL. Does anybody know if something exists like this, or do I need to write a CGI script or equivalent?

FWIW: Yes, I have an 8 year old son that needs some persuasion to GET OFF THE COMPUTER ;-).
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Feb 28, 2011 2:40 pm    Post subject: Reply with quote

The only way I believe this would be possible is to create a PHP page (or CGI, etc.). Since PHP runs on the server side you can have more control over the environment, and can execute such calls with system, exec, shell_exec, etc...

BTW - This is shameless self promotion, but I work on a distro for young kids called Kiddix. You might want to take a look at it. As a plus it is Gentoo at the core! PM me if you want any more details :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum