Hi Maxwell,
On 31.08.24 17:10, Maxwell Pung wrote:
> I am able to get desired behavior**by adding *postupdatecmd =
> "/usr/sbin/reboot";* to the *globals* section of swupdate.cfg and adding
> *run-postupdate = false;* to the *webserver* section. Restarting system
> via REST API and web page work with this configuration.
Right, this is the correct configuration for your use case.
Best regards,
Stefano
>
> ~ Maxwell
>
> On Tuesday, August 27, 2024 at 12:24:41 PM UTC-5 Maxwell Pung wrote:
>
> If I extend my swupdate.cfg with *postupdatecmd =
> "/usr/sbin/reboot";* in the *globals *sections then it will reboot
> automatically after an update is performed. Regardless of whether
> that update is performed via cli, REST API or web page.
>
> This behavior does not fit my use case. It would be preferable to
> not reboot automatically after the update is finished but
> independently, at a later time, using something like *curl -X POST
> --data ""
http://foobar:8080/restart <
http://foobar:8080/restart>*
> or the *Restart System* button on the web page.
>
> ~ Maxwell
>
> On Tuesday, August 27, 2024 at 11:55:19 AM UTC-5 Fabio Estevam wrote:
>
> Hi Maxwell,
>
> On Tue, Aug 27, 2024 at 12:38 PM Maxwell Pung <
max....@lema.io>
> wrote:
> >
> > Hello,
> >
> > I am using SWUpdate 2024.05 commit
> 3a333f4b4b1cec5e3cb1f2e3da41ad82735d0242. I am finding that
> after a doing an update (performed via web page or rest API), I
> am unable to restart the device.
>
> Does it help if you pass "-p /sbin/reboot" to SWUPDATE_ARGS?
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swupdate+u...@googlegroups.com
> <mailto:
swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/swupdate/00e3705c-864b-4837-8739-bb4219c872a7n%40googlegroups.com <
https://groups.google.com/d/msgid/swupdate/00e3705c-864b-4837-8739-bb4219c872a7n%40googlegroups.com?utm_medium=email&utm_source=footer>.