<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Try this:<br>
      <br>
      <div><span style="font-family: Menlo; font-size: 11px;">50 00 * *
          * run_cmd("shutdown")</span></div>
      <div><font face="Menlo"><span style="font-size: 11px;"><br>
            The system unit will restart the node immediately after it
            has shut itself down.<br>
            <br>
            Dirk<br>
          </span></font></div>
      <br>
      On 29/01/2023 21:14, Keith Maton via Dxspider-support wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:4F915AE2-63AC-45F7-98C0-E0EF987E6835@me.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Yes, yes I have.  I’ve been trying that today as it would be the
      perfect solution.
      <div><br>
      </div>
      <div>One of the commands I’m running through the system crontab is
        to stop a service.  I tried the same thing through the spider
        crontab.</div>
      <div><br>
      </div>
      <div>I did some testing and this didn’t stop the service.   </div>
      <div><br>
      </div>
      <div><span style="font-family: Menlo; font-size: 11px;">50 00 * *
          * spawn("sudo service xxx stop")</span></div>
      <div><font face="Menlo"><span style="font-size: 11px;"><br>
          </span></font></div>
      <div>I tried using sudo systemctl stop xxx as well, no joy.  It
        shows in the debug log but the service doesn’t stop.</div>
      <div><br>
      </div>
      <div>
        <p style="margin: 0px; font-stretch: normal; font-size: 11px;
          line-height: normal; font-family: Menlo;"><span
            style="font-variant-ligatures: no-common-ligatures;">1675025460^(cron)
            cron: 51 20 29 1 0 -> doing 'spawn("sudo systemctl stop
            xxx")'</span></p>
        <p style="margin: 0px; font-stretch: normal; font-size: 11px;
          line-height: normal; font-family: Menlo;"><span
            style="font-variant-ligatures: no-common-ligatures;">1675025460^(cron)
            DXCron::spawn: sudo systemctl stop xxx</span></p>
        <p style="margin: 0px; font-stretch: normal; font-size: 11px;
          line-height: normal; font-family: Menlo;">1675025460^(progress)
          subprocess stats cmd: 'sudo systemctl stop xxx' by
          DXCron::spawn 82mS</p>
        <p style="margin: 0px; font-stretch: normal; font-size: 11px;
          line-height: normal; font-family: Menlo;"><br>
        </p>
      </div>
      <div>I’ve also tested using ‘ instead of “ because I have some
        spawn commands in my spider crontab with ‘ and some with “,
        neither work to stop the service.</div>
      <div><br>
      </div>
      <div>Also tried this in case it needed the path.</div>
      <div><br>
      </div>
      <div>
        <p style="margin: 0px; font-stretch: normal; font-size: 11px;
          line-height: normal; font-family: Menlo;"><span
            style="font-variant-ligatures: no-common-ligatures;">02 21 *
            * * spawn('sudo /usr/bin/systemctl stop xxx')</span></p>
      </div>
      <div><span style="font-variant-ligatures: no-common-ligatures;"><br>
        </span></div>
      <div>That also didn’t stop the service.</div>
      <div><br>
      </div>
      <div>
        <p style="margin: 0px; font-stretch: normal; font-size: 11px;
          line-height: normal; font-family: Menlo;"><span
            style="font-variant-ligatures: no-common-ligatures;">1675026120^(cron)
            cron: 2 21 29 1 0 -> doing 'spawn('sudo
            /usr/bin/systemctl stop xxx')'</span></p>
      </div>
      <div><span style="font-family: Menlo; font-size: 11px;">1675026120^(cron)
          DXCron::spawn: sudo /usr/bin/systemctl stop xxx</span></div>
      <div><span style="font-variant-ligatures: no-common-ligatures;">
          <p style="margin: 0px; font-stretch: normal; font-size: 11px;
            line-height: normal; font-family: Menlo;"><span
              style="font-variant-ligatures: no-common-ligatures;">1675026120^(progress)
              subprocess stats cmd: 'sudo /usr/bin/systemctl stop xxx'
              by DXCron::spawn 90mS</span></p>
          <div><span style="font-variant-ligatures:
              no-common-ligatures;"><br>
            </span></div>
        </span></div>
      <div>73 Keith</div>
      <div><br>
        <blockquote type="cite">
          <div>On 29 Jan 2023, at 20:25, Kin EA3CV
            <a class="moz-txt-link-rfc2396E" href="mailto:ea3cv@cronux.net"><ea3cv@cronux.net></a> wrote:</div>
          <br class="Apple-interchange-newline">
          <div>
            <div>
              <div><span style="color: rgb(77, 81, 86); font-family:
                  Roboto, "Helvetica Neue", Arial, sans-serif;
                  font-size: 12pt; background-color: rgb(255, 255, 255);
                  display: inline !important;">And you haven't thought
                  about centralizing everything in the spider crontab,
                  it would be easier, I think.</span><br>
                <div dir="auto"><span style="color:rgb(77, 81,
                    86);font-family:Roboto, "Helvetica Neue",
                    Arial,
                    sans-serif;font-size:small;background-color:rgb(255,
                    255, 255);display:inline !important"><br>
                  </span></div>
                <div dir="auto"><span style="color: rgb(77, 81, 86);
                    font-family: Roboto, "Helvetica Neue",
                    Arial, sans-serif; font-size: 12pt;
                    background-color: rgb(255, 255, 255); display:
                    inline !important;">Kin </span></div>
                <div dir="auto"><span style="color: rgb(77, 81, 86);
                    font-family: Roboto, "Helvetica Neue",
                    Arial, sans-serif; font-size: 12pt;
                    background-color: rgb(255, 255, 255); display:
                    inline !important;"><br>
                  </span></div>
              </div>
              <div><br>
              </div>
              <div id="ms-outlook-mobile-signature" dir="auto">Obtener <a
                  href="https://aka.ms/AAb9ysg" moz-do-not-send="true">Outlook
                  para Android</a></div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Dxspider-support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dxspider-support@tobit.co.uk">Dxspider-support@tobit.co.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>