Re: [SLUG] socket dissapears, how to t/s ?

2013-12-16 Thread Amos Shapira
So it's not a chroot thing. Please run "lsof -p 5914" and paste the output,
I don't trust grep's on pid numbers.



On 17 December 2013 15:12,  wrote:

> On Mon, December 16, 2013 10:23 pm, Amos Shapira wrote:
> > Try "ls -l /proc/21905/root" to show you the process's root directory.
>
> # ps ax | grep clamd
>  5914 ?Ssl0:14 clamd
>
> # ls -l /proc/5914/root
> lrwxrwxrwx 1 root root 0 Dec 17 15:11 /proc/5914/root -> /
>
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>



-- 
 [image: View my profile on LinkedIn]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] socket dissapears, how to t/s ?

2013-12-16 Thread lists
On Mon, December 16, 2013 10:23 pm, Amos Shapira wrote:
> Try "ls -l /proc/21905/root" to show you the process's root directory.

# ps ax | grep clamd
 5914 ?Ssl0:14 clamd

# ls -l /proc/5914/root
lrwxrwxrwx 1 root root 0 Dec 17 15:11 /proc/5914/root -> /


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] socket dissapears, how to t/s ?

2013-12-16 Thread Amos Shapira
Try "ls -l /proc/21905/root" to show you the process's root directory.



On 16 December 2013 14:28,  wrote:

> On Mon, December 16, 2013 2:01 pm, Steve Kowalik wrote:
>
> > Sounds like a chroot issue. As root, what does /proc//cwd
> > point to?
>
> Steve, thanks
>
> do you mean this:
> # ps ax | grep clamd
> 21905 ?Ssl0:00 clamd
>
> # ls -al  /proc/21905/cwd
> lrwxrwxrwx 1 root root 0 Dec 16 14:22 /proc/21905/cwd -> /
>
> # ls  /proc/21905/cwd
> bin   cgroup  etc   liblost+found  misc  net  proc  sbin srv  tmp
> var
> boot  dev home  lib64  media   mnt   opt  root  selinux  sys  usr
>
> # ls -al  /proc/21905/cwd/var/spool/amavisd/clamd.sock
> srw-rw-rw- 1 amavis amavis 0 Dec 16 14:21
> /proc/21905/cwd/var/spool/amavisd/clamd.sock
>
>
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>



-- 
 [image: View my profile on LinkedIn]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html