Suricatta and swupdate.cfg file

801 views
Skip to first unread message

Diego Rondini

unread,
Jun 16, 2017, 12:37:10 PM6/16/17
to swup...@googlegroups.com
Hi SWUpdaters,

I'd like to specify suricatta parameters in the swupdate.cfg, as shown in the
example file here:
https://github.com/sbabic/swupdate/blob/master/examples/configuration/
swupdate.cfg#L107

Unfortunately it seems id, tenant and url need to be passed as command line
arguments anyway to activate the "suricatta mode".

What I mean is that I'd like to start swupdate just with "swupdate -f
swupdate.cfg" and have every option decided by the config file.

Am I missing something or is that area still work-in-progress?

Bests,
Diego

Stefano Babic

unread,
Jun 16, 2017, 2:16:29 PM6/16/17
to Diego Rondini, swup...@googlegroups.com
Hi Diego,

On 16/06/2017 18:37, Diego Rondini wrote:
> Hi SWUpdaters,
>
> I'd like to specify suricatta parameters in the swupdate.cfg, as shown in the
> example file here:
> https://github.com/sbabic/swupdate/blob/master/examples/configuration/
> swupdate.cfg#L107
>
> Unfortunately it seems id, tenant and url need to be passed as command line
> arguments anyway to activate the "suricatta mode".
>
> What I mean is that I'd like to start swupdate just with "swupdate -f
> swupdate.cfg" and have every option decided by the config file.

The options are set, but you have to pass which modules (downloader /
webserver /backend) must be started.

>
> Am I missing something

Yes.

You have to use:

swupdate -f swupdate.cfg -u ""

The empty string says to start suricatta, but all parameters are taken
from the configuration file. Command line parameters overwrite the
values in swupdate.cfg, that means you can also:

swupdate -f swupdate.cfg -u "-t pippo"

and this overwrites the value in the .cfg.

You can decide to start SWUpdate with more as one module, for example:

swupdate -f swupdate.cfg -u "" -w ""

This starts both suricatta and the webserver.


> or is that area still work-in-progress?

No.

Best regards,
Stefano

--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Diego Rondini

unread,
Jun 19, 2017, 8:07:24 AM6/19/17
to Stefano Babic, swup...@googlegroups.com
In data venerdì 16 giugno 2017 20:16:23 CEST, Stefano Babic ha scritto:
> Hi Diego,
>

Hi Stefano,

> On 16/06/2017 18:37, Diego Rondini wrote:
> > Hi SWUpdaters,
> >
> > I'd like to specify suricatta parameters in the swupdate.cfg, as shown in
> > the example file here:
> > https://github.com/sbabic/swupdate/blob/master/examples/configuration/
> > swupdate.cfg#L107
> >
> > Unfortunately it seems id, tenant and url need to be passed as command
> > line
> > arguments anyway to activate the "suricatta mode".
> >
> > What I mean is that I'd like to start swupdate just with "swupdate -f
> > swupdate.cfg" and have every option decided by the config file.
>
> The options are set, but you have to pass which modules (downloader /
> webserver /backend) must be started.
>
> > Am I missing something
>
> Yes.
>
> You have to use:
>
> swupdate -f swupdate.cfg -u ""
>
> The empty string says to start suricatta, but all parameters are taken
> from the configuration file.

Ah, thanks, I didn't think of using two double quotes to send an empty string.

Thank you very much,
Diego
Reply all
Reply to author
Forward
0 new messages