# Autorun applications on wago device

**URL:** <https://www.wago.community/t/autorun-applications-on-wago-device/142>\
**Category:** Hardware and Linux\
**Tags:** how-to\
**Created:** [June 27, 2022, 1:42pm UTC](https://www.wago.community/t/autorun-applications-on-wago-device/142 "2022-06-27T13:42:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)\
**Post date:** [June 27, 2022, 1:42pm UTC](https://www.wago.community/t/autorun-applications-on-wago-device/142/1 "2022-06-27T13:42:57Z")

</div>

Documentation by this readme-file:  
[https://github.com/thorgrimjansrud/wago-device-autostart-app/blob/main/README.md](https://github.com/thorgrimjansrud/wago-device-autostart-app/blob/main/README.md)

---

<div class="post-metadata">

**Author:** ![joe\_a](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/joe_a/32/137_2.png) [@joe\_a](https://www.wago.community/u/joe_a)\
**Post date:** [April 6, 2023, 7:50pm UTC](https://www.wago.community/t/autorun-applications-on-wago-device/142/2 "2023-04-06T19:50:38Z")

</div>

Hi ThorGrim, this is a great document. I’m curious if you encountered the rc.once.d directory and if you knew how that operates. Would this activate once as startup begins and if so how does it differ from the regular rc.d? Should this directory also have a symbolic link to the init.d directory or does it run off some other daemon?

---

<div class="post-metadata">

**Author:** ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)\
**Post date:** [April 11, 2023, 7:23am UTC](https://www.wago.community/t/autorun-applications-on-wago-device/142/3 "2023-04-11T07:23:48Z")

</div>

Hi Joe.

Interesting question.

I never did explore this in detail. There is a run command “S03\_rc-once” pointing to “init.d/rc-once” but no reference to “rc.once.d” runlevel. Quick test making a script inside “rc.once.d” generating a textfile then rebooting controller returns nothing…

Looking at “/etc/inittab” that controls the init procedure.  
It has no runlevel specified ( id:rstate:action:process) when starting “/etc/init.d/rcS". Then the command “run-parts -a start /etc/rc.d” starts all scripts inside “rc.d”.

I cant see that “rc.once.d” is ever started…
