# Order of application startup from software?

**URL:** <https://forum.legato.io/t/order-of-application-startup-from-software/5817>\
**Category:** Uncategorized\
**Created:** [June 1, 2021, 8:29am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817 "2021-06-01T08:29:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [June 1, 2021, 8:29am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/1 "2021-06-01T08:29:56Z")

</div>

Hello everybody. I am developing a project that includes many apps, including one for activating the WiFi and another for activating the script for activating the CAN bus. Since I noticed that the board does not work well if I reverse the operations, I need to start FIRST the script that enables SPI and CAN driver and then the WiFi connection. Is there a way to “traffic light/semaphorize” the start of the various apps? I can’t find one that isn’t problematic.

---

<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:** [June 1, 2021, 9:11am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/2 "2021-06-01T09:11:17Z")

</div>

you can set the application to start manually in .adef and then you can use a script to “app start” them one by one

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [June 1, 2021, 9:13am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/3 "2021-06-01T09:13:04Z")

</div>

I don’t want to start manually, I want to make software starts app

---

<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:** [June 1, 2021, 9:19am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/4 "2021-06-01T09:19:42Z")

</div>

didn’t you already have a init script to control?

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [June 1, 2021, 9:28am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/5 "2021-06-01T09:28:39Z")

</div>

No, in fact I want understand how to realize it. I have only a script that enables CAN, but I launch it with ./start

---

<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:** [June 1, 2021, 9:36am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/6 "2021-06-01T09:36:01Z")

</div>

no idea, probably setting start manually is the easiest to control.

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [June 1, 2021, 10:40am UTC](https://forum.legato.io/t/order-of-application-startup-from-software/5817/7 "2021-06-01T10:40:09Z")

</div>

ok, solved with startup functions (it could be useful to someone):

> **[Supervisor - Legato Docs](https://docs.legato.io/latest/legatoServicesSupervisor.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development
