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

    Problem starting a program with shellcmd

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 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.
    • T
      trinli
      last edited by

      Using v.1.2.2

      I've got a custom script that I would like to start on boot.  I've looked at the rc.d option, and I'd rather start it in something that is backed up.  So, this is what I've done to /conf/config.xml
      <system><shellcmd>/usr/local/sbin/mycommand.sh &</shellcmd>
      …</system>

      I've run the command manually, so permissions are correct.

      Also, after a reboot, the shellcmd line is removed from my config.xml file.  Is there something I'm missing or doing incorrectly?

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