directadmin logrotation and external nginx

bluescreen303

New member
Joined
Nov 3, 2007
Messages
1
Hi,

I use a directadmin server which runs fine. no complaints :)
On the same server (on an ip-address not controlled by directadmin/apache) nginx is running (nginx is a web server).
The domains that need nginx are directed to the nginx-ip using dns A records.

All works very well.
Except for logging.
At the moment i'm doing nginx logs to a different dir and using logrotate to rotate them.
This works, but this way directadmin has no insight in them, hence webalizer and bandwidth monitoring won't work.

I already setup nginx to generate exactly the same log file names and format as apache does for directadmin.

So the only thing left to do is move nginx's log-file location so directadmin can find them.

But I'm pretty sure that's not gonna work, since nginx should be reloaded after directadmin rotates the log files.
I know DA makes apache restart/reload after rotating, but I can't seem to find where/how it does this exactly.

Is there an easy way to make a callback/hook somewhere to make DA restart/reload nginx after rotating its logfiles?

any help would be greatly appreciated.
 
DirectAdmin is a compiled C++ program. This sounds like it would be custom work; I don't know if DirectAdmin staff does custom work or not. You might want to contact DirectAdmin staff directly; see the contact-us page.

Jeff
 
Back
Top