/usr/sbin/tmpwatch -am 1 /tmp/nginx_client not cleaning nginx temporary files

Posted by valter on Server Fault See other posts from Server Fault or by valter
Published on 2013-10-19T16:34:58Z Indexed on 2013/10/21 3:57 UTC
Read the original article Hit count: 510

Filed under:
|

I installed nginxcp (A nginx plugin for cpanel).

They recommend to add the following cron job to clean the temp files.

0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client

But it does't work. Even running the command /usr/sbin/tmpwatch -am 1 /tmp/nginx_client nothing happens. None of the files are being removed.

The only strange thing I noticed, is that all tmp files that are being stored at /tmp/nginx_client belongs to nobody nobody.

What am I doing wrong?

thanks.

© Server Fault or respective owner

Related posts about nginx

Related posts about tmpwatch