Autorun applications on wago device

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

3 Likes

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?

1 Like

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…

1 Like