# How to change application startup after installation

**URL:** <https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226>\
**Category:** Uncategorized\
**Created:** [April 23, 2018, 10:25pm UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226 "2018-04-23T22:25:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [April 23, 2018, 10:25pm UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/1 "2018-04-23T22:25:49Z")

</div>

Hiya,

I have an application installed on a WP device that currently has the startup mode set to manual (i.e. doesn’t automatically start when legato is started).

How do I change the startup mode to _automatic_ - **ON THE DEVICE**? I don’t want to change the mode in the adef file and rebuild/install - I just need to change the mode on a single platform.

I’ve looked through the `cm` and `app` commands … but nothing leaps out at me. I also thought about looking through the system config tree … but a little guidance would be useful before making too many modifications there!

ciao, Dave

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 24, 2018, 1:24am UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/2 "2018-04-24T01:24:00Z")

</div>

how about writing a init script to "app start " your application?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [April 24, 2018, 5:30am UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/3 "2018-04-24T05:30:43Z")

</div>

Hi @davidc

This should help I guess 😉

```
$ config get system:/apps/smsInboxService/startManual
true

```

(default if “startManual” is not present is false)

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [April 24, 2018, 7:20am UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/4 "2018-04-24T07:20:17Z")

</div>

Hi @daav

Bingo. That’s exactly what I was looking for. Thanks.

For the record, to **change** the startup state (from manual to automatic) for an app from the command line:

`$ config set system:/apps/smsInboxService/startManual false bool`

and then restart legato or reboot.

Thanks again.

ciao, Dave

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [April 30, 2018, 6:50am UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/5 "2018-04-30T06:50:00Z")

</div>

Hi @daav,  
I set “start: auto” in adef and then set manually start by “config set system:/apps/smsInboxService/startManual true”, then confirmed the value has changed to “ture”  
_root@swi-mdm9x15:~# config get system:/apps/helloworld/startManual_  
_true_  
But app still auto run after power up the device, any idea?

If I firstly set “start: manual” in adef and then change it to auto start by “config set system:/apps/smsInboxService/startManual false”, it works.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [May 2, 2018, 12:37pm UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/6 "2018-05-02T12:37:50Z")

</div>

> [@JordanZhao](#):
>
> config set system:/apps/smsInboxService/startManual true

Mmmm… can you try with:

```
config set system:/apps/smsInboxService/startManual true bool

```

I’m afraid that not using the “bool” keyword stores data as a simple string, making the check failing…

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [May 4, 2018, 3:57am UTC](https://forum.legato.io/t/how-to-change-application-startup-after-installation/3226/7 "2018-05-04T03:57:35Z")

</div>

Yes @daav, should set type as bool.
