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

    Sync files over Carp / restart services affected

    Scheduled Pinned Locked Moved Development
    4 Posts 2 Posters 797 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.
    • R
      robi
      last edited by

      There's a proprietary service bouquet manually installed on a pair of nanobsd pfSense-based appliances here running in Carp redundancy. This proprietary stuff keeps its config in some local files in the /conf/myservice/directory path.

      How could I add a functionality to the system so that if such a file (under the path above) changes on the master, be syncronized down to the backup? Moreover, if the file changed on the backup, have the corresponding service restarted there.

      Any hint would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • R
        robi
        last edited by

        Nobody?

        Guess some scripts based on inotify + rsync could do the job… any more efficient way?

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Uhm. Noted there is a XMLRPC sync funtionality available?

          1 Reply Last reply Reply Quote 0
          • R
            robi
            last edited by

            Yep. But I don't really see how could I include my stuff into it.

            Could anybody point me into the right direction please? I need to sync config files (proprietary format, not xml) and restart services affected.

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