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

  • 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.


    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

  • Netgate Administrator

    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.


  • 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.

  • Netgate Administrator

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


  • Just happened today again

    [2.4.4-RELEASE][]/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