How do I stop run-parts?

glinsvad ulist at gs1.ubuntuforums.org
Sat Jul 15 22:08:19 UTC 2006


Honestly, I have no idear what might be wrong. That being said, I hope I
can offer som assistance in debugging your problem.



First we'd bette figure out exactly what run-parts is running:


Code:
--------------------
    

  top -b -n 1 -c | grep run-parts | grep -v "grep run-parts"

  
--------------------


(Explanation: Run top once displaying command-line arguments, show
lines containing run-parts only and finally remove the grep-command if
it is in the list also)



If anythings shows up, you should probably post it in this thread.
Without knowing exactly what is persistently running, it is kinda hard
to kill it no? Also you mentioned similar problems under breezy - how
similar I ask?



If the above produced output contains paths in the arguments to
run-parts (most likely some will), you can get a hint of what might be
running. You can make run-parts print out the names of all
scripts/programs (those executable by run-parts, that is) in a single
directory by typing:


Code:
--------------------
    

  run-parts --test DIRECTORY

  
--------------------


So if you suspect any particular directory to misbehave, this would be
my suggestion in order to locate the rogue script or program.



IF-ALL-ELSE-FAILS:

You can use find to locate all directories (without descending
directories on other filesystems) and execute run-parts --test
DIRECTORY them all.


Code:
--------------------
    

  find / -mount -type d -exec run-parts --test {} \;

  
--------------------




You might want to redirect the output to a textfile since it will be an
loong list! To display the list on-screen while also saving everything
to LOGFILE do:


Code:
--------------------
    

  find / -mount -type d -exec run-parts --test {} \; 2>/dev/stdout | tee LOGFILE

  
--------------------


-- 
glinsvad




More information about the ubuntu-users mailing list