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

    Crontab entries disapear

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 4 Posters 2.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.
    • M
      mmaxx
      last edited by

      Hi,

      I've added an entry to my crontab to run squid-reports on a daily basis. Every few months or so, the entry disappears and i'm left with just the default pfsense entries!

      What is the correct way to add crontab entries in PF sense? I find references to doing it via config.xml, but dont find a way to apply these changes.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        download the config.xml,
        modify it,
        restore it.

        pfSense will reboot with the new config.xml –> it applies your changes.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • N
          nocer
          last edited by

          Hello,

          Or, even modify /etc/inc/services.inc to include your entry, then Status>Filter Reload, reboot the box of course better.

          cheers,

          1 Reply Last reply Reply Quote 0
          • M
            master_fungul
            last edited by

            Hi there,

            I'm getting a similar problem with a cron job I have setup and each time the embedded device reboots it will overwrite the crontab back to default.

            This may be a crappy question to ask, but it looks as though there are a few crontab entries in the config.xml file under each . Why don't these show up and would I expect my to not show up when i run crontab -l because it's running from somewhere else.

            Thanks

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