Yeah, the pid file creation needs to be moved earlier - before ntop sheds
privledges.  Unfortunately, you haven't become the daemon yet, so you don't
actually have the right PID even.

Nothing actually uses the pid file (it would be in the script, e.g.
/etc/init.d/ntop) so the right thing to do is (for non-root users) to move
the file into the ntop directory, e.g. /usr/share/ntop or whatever -P
specifies.

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Markus Rehbach
Sent: Thursday, September 04, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] **WARNING** INIT: Unable to create pid file
(/var/run/ntop.pid)


Hi all,

i'm using the cvs version on a modified SuSE 8.0 and the permissions for the
/var/run folder are

4 drwxr-xr-x    9 root     uucp         4096 Sep  3 18:26 run

Could start ntop as root to avoid the warning (not a good idea i think) or
could change the permissions on the folder. Not a good idea, too? I do not
know other distributions and the permissions on that folder.

Cheers

Markus


_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to