How to automatically start Vybrid application after boot in the Timesys Linux ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to automatically start Vybrid application after boot in the Timesys Linux ?

跳至解决方案
1,352 次查看
dragan
Contributor III

Respected Colleagues,

how to make a script for automatic start of some Vybrid application after boot in the Timesys Linux, and where to implement call of that script ?

For example, after power failure, application have to start automatically.

Is it explained in some Timesys document?

Thanks in advance.

With best regards,

Dragan Kujovic

标签 (4)
0 项奖励
回复
1 解答
1,040 次查看
ed_nash
Contributor III

Unless it has changed, look in /etc/init.d - you will find scripts named s* and k* - the s* scripts are executed in alphabetical order on startup (they must have x permission) and the k files are executed in alphabetical order on shutdown. Simply add your own script. Typically it runs last and make sure your command runs in background (ends with "&") if you want to continue to a shell prompt.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,041 次查看
ed_nash
Contributor III

Unless it has changed, look in /etc/init.d - you will find scripts named s* and k* - the s* scripts are executed in alphabetical order on startup (they must have x permission) and the k files are executed in alphabetical order on shutdown. Simply add your own script. Typically it runs last and make sure your command runs in background (ends with "&") if you want to continue to a shell prompt.

0 项奖励
回复
1,040 次查看
dragan
Contributor III

Respected ed_nash

thanks to your suggestion I have managed to make and start my application trough script file at the and of boot.

To help others that have little knowledge as I have, I will elaborate this topic further.

In Timesys Factory folder (for example):

/timesys/pcl052/factory-20140113/build_armv7l-timesys-linux-gnueabi/rfs/etc/init.d

Make file with S*XX prefix where XX is the highest number in that folder. For example: S99_ACME

I have attached sample file, where you have to change path and file name you wish to start.

This file copy to /rfs/etc/init.d folder of your SD card.

With best regards,

Dragan Kujovic

0 项奖励
回复