I've got the code fixed - if you're root, it's /var/run if not it goes into
the -P directory.

So as part of the fixup of /etc/init.d/ntop, now you know what to look for.

-----Burton

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


/etc/init.d/functions use the pid file during shutdown to kill it off, but
'most' distributions don't require it and alternately will look for the
process in memory if the pid file is missing.

Tim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Burton M. Strauss III
Sent: Thursday, September 04, 2003 6:04 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop-dev] **WARNING** INIT: Unable to create pid file
(/var/run/ntop.pid)


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


_______________________________________________
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