Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Why is ndt running & how shut it OFF?!

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Why is ndt running & how shut it OFF?!


Chronological Thread 
  • From: Mark Foster <>
  • To: <>, "" <>
  • Subject: Re: [perfsonar-user] Why is ndt running & how shut it OFF?!
  • Date: Fri, 20 Feb 2015 14:26:29 -0800

Winnie
()
pointed out that ndt services had mysteriously been restarted, and
tracked down the restart to the logrotate script.

In /etc/logrotate.d/ndt, there is a line

/sbin/service ndt restart > /dev/null 2>/dev/null || true

I note that neither the logrotate nor the /etc/init.d/ndt script have any
detection for if the service has been disabled (e.g., by the perfsonar GUI).
I put in a check in the /etc/init.d/ndt script (see diff below) on one of my
perfsonar boxes. This avoids starting/restarting the service if it's been
disabled.

*** ndt.dist 2014-12-16 12:50:42.454381680 -0800
--- ndt 2015-02-20 12:15:44.756357381 -0800
***************
*** 125,130 ****
--- 125,137 ----
start
}

+ # if ndt isn't enabled (on) for any runlevel, just exit
+ ndtenab=`chkconfig --list ndt 2>/dev/null | grep on | wc -l`
+ if [ $ndtenab -eq 0 ]; then
+ echo "ndt not enabled (run 'chkconfig --add ndt')"
+ exit 1
+ fi
+
case "$1" in
start)
start




On 2/9/2015 12:36 PM, Mark Foster wrote:
Winnie -

I noticed a similar issue on some of my 3.4 systems.
I used the GUI, did an "enable" of NDT, followed by a save, then a "disable"
of NDT followed by a save. Following this action, the ndt/fakewww daemon wasn't in service, and
stayed shutdown following a reboot.

For the problems you note in the cron-service_watcher scripts, try adding to
the top
of /etc/cron.d/cron-service_watcher

PATH=/sbin:/bin:/usr/sbin:/usr/bin

That worked for me.

-- Mark

On 2/9/2015 7:35 AM, Winnie Lacesso wrote:

On Mon, 9 Feb 2015, Aaron Brown wrote:
Hey Winnie,
Could you send /var/log/perfsonar/service_watcher_error.log?

Ah yes I had a question about that logfile...... on both Bw+Lat it's
overwritten once an hour by /etc/cron.d/cron-service_watcher that runs

root /opt/perfsonar_ps/toolkit/scripts/service_watcher &>
/var/log/perfsonar/service_watcher_error.log

output = 11 identical lines in /var/log/perfsonar/service_watcher_error.log

Can't exec "runlevel": No such file or directory at
/opt/perfsonar_ps/toolkit/scripts/../lib/perfSONAR_PS/NPToolkit/Services/Base.pm line
147.




Archive powered by MHonArc 2.6.16.

Top of Page