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

    Package restart, pfSsh.php playback svc restart doesn't work, UI works

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.1k 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
      Vetal
      last edited by Vetal

      Hello,

      I have an auto-restart, cron-based script, that restarts Unbound/Tinc/Quagga. It works most of the time, but, eventually, comes to the state when it does not.

      So,

      pfSsh.php playback svc restart tinc
      

      Has no effect once it get to this "stuck" state. Either from script or from ssh terminal. I can run it several times, no effect. Until I restart pfSense or restart service via pfSense UI.

      Based on that, I presume, UI restart and above terminal command work differently.

      What is the UI-based command to issue to do restart? Or command, to investigate, when it stuck again

      Thank you

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Does it fail just when tun from the script or also when run from the command line manually?

        The cron user runs with slightly different permissions and paths. Be sure to specify the full path to the command.

        Steve

        1 Reply Last reply Reply Quote 0
        • V
          Vetal
          last edited by

          Before it got to stuck state, it (tinc) restarts fine, both from cron or command line. Once it is stuck, it fails both:

          1. from the script, triggered by cron job
          2. Run from the command line (putty ssh session)

          Cron job is trying to get it again and again, every minute, according to the script
          As well as, command line. I can run it several times - no effect

          UI (Status -> Services -> Restart), or (Status -> Dashboard -> Services Status -> Restart) makes service to restart

          For sure, "stuck" state is fixed by pfSense restart.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm. You see no errors running that at the command line or in the system log?

            Steve

            1 Reply Last reply Reply Quote 0
            • V
              Vetal
              last edited by

              Just happened today again

              
              [2.4.4-RELEASE][Vetal@router.place.somedomain.com]/home/Vetal: pfSsh.php playback svc restart tinc
              Attempting to issue restart to tinc service...
              
              tinc has been restarted.
              
              

              Nothing is added to the syslog, I did tail -f to it. Nothing related in tinc.log

              Next time I'll check "ps aux | grep tinc", today's while in "stuck state" was not wide enough to fit "/usr/local/sbin/tincd" part. I already UI-restarted it

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