[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Initscript + daemonstart



Hej SSLUG'ere
 
Har gennemsøgt arkiverne + google, uden held. Er dette alligevel en
gentagelse af tidligere emner, beklager jeg, ligesom jeg på forhånd vil
beklage evt. brud på netiketten. Sig til, så jeg kan lære det.

-> Initsctipt + daemon start
 
Min Debian Sarge kører ADSL-optimizer. Hertil hører en daemon
(tc-collector.pl), som samler data fra "tc" og gemmer disse i .rrd filer.
Men kun for ét interface. Jeg har kopieret henholdsvis init- og
daemon-scriptet og ændret et par variable (interface, procesnavn og
daemonscript). Men når init-scriptet startes (fx invoke-rc.d <script> start)
får jeg en fejl om at det ikke lykkedes at starte daemonen. I init-scriptet
kan jeg se, at fejlen udløses af, at status-check på processen, ikke finder
nogen pid-fil i /var/run. Men det originale script har tilsyneladende heller
ikke nogen pid fil her (watch -n 1 ls -lah /var/run). Og selvom jeg får
fejlmeddelelsen, kører den nye proces faktisk (ps -A | grep tc-collector) og
samler de data den skal. Har tjekket rettigheder på filer mv. som ikke giver
anledning til mistanke. Det originale script udløser ikke nogen
fejlmeddelelser, og kører stadig fint.
 
Nogen idéer?

Vh Søren Loft



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-05-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *