TJ I have fixed the fact that if you do not specify a pid file the pid is /var/tmp/ntopng.pid. THis because on /var/run if ntopng saves the pid then it cannot delete it at shutdown as the current user has been changed (root->nobody). You can always override the pid file with the CLI options
Regards Luca On Aug 23, 2013, at 3:24 PM, T.J. Yang <[email protected]> wrote: > Hi Luca, > > I can't stop ntopng using "/etc/init.d/ntopng stop" command due to > /var/run/ntopng.pid file was missing. > > [root@test2 ~]# grep id /etc/ntopng/ntopng.conf > -G=/var/run/ntopng.pid > [root@xymon2 ~]# ls -l /var/run/ntopng.pid > ls: cannot access /var/run/ntopng.pid: No such file or directory > [root@test2 ~]# ps -eaf |grep ntopng > root 13860 13844 0 Aug18 pts/2 00:00:00 grep ntopng > nobody 25439 1 18 07:38 pts/6 00:07:31 /usr/local/bin/ntopng > /etc/ntopng/ntopng.conf > root 29485 25233 0 08:19 pts/6 00:00:00 grep ntopng > [root@test ~]# > > -- > T.J. Yang > _______________________________________________ > 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
