Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Shellcmd and running multiple daemon scrips

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vbhoj74
      last edited by

      Hi,

      I'm trying to run couple of python daemon scrips with the <shellcmd>which only seems to start the 1st scrip upon reboot.

      Here is what my shellcmd utility shows:

      /usr/local/bin/python /home/owl.py &
      echo "trying 1st scrip.." >> /home/log
      /usr/local/bin/python /home/responder.py &
      echo "trying 2nd scrip.." >> /home/log
      

      It just executes line 1 above.

      If i modify the same to :

      
      echo "trying 1st scrip.." >> /home/log
      echo "trying 2nd scrip.." >> /home/log
      /usr/local/bin/python /home/owl.py &
      /usr/local/bin/python /home/responder.py &
      
      

      It now executes till line 3 and starts owl.py and stops. What am I missing ?

      should not matter but I've set the 1st line of both the scrips to:
      #!/usr/local/bin/env python2.6</shellcmd>

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Are those four separate shellcmd tags, or is that a script being called by a single shellcmd?

        You might try using nohup instead of &.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.