To get the pid id:
?php
exec(cat [path to pid file], $pid); echo $pid[0];
?
raditha dissanayake wrote:
Mário Gamito wrote:
Hi,
I need to kill (squid) -D
pidof (squid) -D gives an error :(
man pidof
we have nowed moved to off topic territory.
--
Raditha Dissanayake.
[snip]
I need to restart squid from PHP, but my squi doesn't stop because a lot
of stupid errors.
So, i need to kill it and then start it again.
[EMAIL PROTECTED] init.d]# ps aux | grep squid
root 9281 0.0 0.3 6124 1792 ?S16:04 0:00 squid -D
squid 9283 0.0 1.0 8392
Mário Gamito wrote:
Hi,
I need to restart squid from PHP, but my squi doesn't stop because a
lot of stupid errors.
So, i need to kill it and then start it again.
killing a process owned by another user is a tough ask. The squid docs
say you shouldn't run it as root and it also advice against
Hi,
I need to kill (squid) -D
pidof (squid) -D gives an error :(
Regards,
Mário Gamito
raditha dissanayake wrote:
Mário Gamito wrote:
Hi,
I need to restart squid from PHP, but my squi doesn't stop because a
lot of stupid errors.
So, i need to kill it and then start it again.
killing a process
Mário Gamito wrote:
Hi,
I need to kill (squid) -D
pidof (squid) -D gives an error :(
man pidof
we have nowed moved to off topic territory.
--
Raditha Dissanayake.
http://www.radinks.com/sftp/ |
5 matches
Mail list logo