Menu

#6 duplicate logs

3.1-ng
closed
nobody
log (1)
2023-05-02
2020-03-16
mstudio
No

arpon send log both files (syslog and arpon.log). how to send logs only to arpon.log?

Discussion

  • prakash ks

    prakash ks - 2020-03-17

    I think u need to run it as daemon.
    This is how i applied patch
    --- a/src/config.h.in
    +++ b/src/config.h.in
    @@ -49,12 +49,12 @@
    /*

    • Log file.
      */
      -#define LOG_FILE "@ARPON_LOG@"
      +#define LOG_FILE "/opt/logs/arpon.log"

    /*

    • Pid file.
      */
      -#define PID_FILE "@ARPON_PID@"
      +#define PID_FILE "/tmp/arpon.pid"
      to avoid default logging
     

    Last edit: prakash ks 2020-03-17
  • mstudio

    mstudio - 2020-03-17

    I solved it by directly starting the binary with the parameters like a daemon:

    /usr/sbin/arpon -d -i eth1 --darpi
    

    Thanks for your help and congratulations. Excellent project

     
  • Andrea Di Pasquale

    Hi,

    exactly! Please use the daemon mode.

    Thanks

     
  • Andrea Di Pasquale

    • status: open --> closed
     
  • Trainy McTrainface

    I'm using daemontools to invoke arpon so I can't use -d. Daemontools has their own logging, with log rotation and such which it picks up from stdout. But when I do that I still get a log in /usr/local/etc. I'm running v2.6 but I've seen rumors of a version with a -f command-line arg, I think in Debian webpages.

    Can someone incorporate those changes back to SourceForge?

     

Log in to post a comment.

MongoDB Logo MongoDB