Can't find packet forwarder log file

Home Forums Conduit: AEP Model Can't find packet forwarder log file

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #23635
    Rebecca Xiong
    Participant

    Hi,

    I am running my conduit under packet forwarder mode but I cannot find the log file for it, which is supposed to be under /var/log as /var/log/lora-pkt-fwd-1.log. The only files I can see under the log dir are:
    app
    dmesg
    massages
    maessges.1
    wtmp
    boot
    lastlog
    messages.0
    mosquitto.log

    My packet forwarder script is:

    
    pkt_fwd=$run_dir/1/lora_pkt_fwd
    pkt_fwd_log=/var/log/lora-pkt-fwd-1.log
    pkt_fwd_pidfile=$run_dir/lora-pkt-fwd-1.pid
    

    In my do_start()
    I have:

    
    # start packet forwarder
        cp $conf_dir/global_conf.json $run_dir/1/global_conf.json
        /usr/sbin/start-stop-daemon --chdir $run_dir/1 --background --start --make-pidfile \
            --pidfile $pkt_fwd_pidfile --startas /bin/bash -- -c "exec $pkt_fwd"
    

    Should I add the log command here to make it write to the log file? Please tell me how to do so cuz I am not really familiar with scripts.

    Thanks for help in advance!

    Rebecca

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.