Identify boot ,shutdown or reboot in linux shell script yocto linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Identify boot ,shutdown or reboot in linux shell script yocto linux

1,866件の閲覧回数
vijith_g1
Contributor II

Hi,

In my current project I need to identify running jobs for detecting the system is in reboot or shutdown level.

Using systemctl I knows how to identify the jobs. But in Digi yocto linux i could not find systemctl .Please let me know how can I identify in linux script whether the system is in boot , restart or shutdown level.

Thanks & Regards

Vijith G

ラベル(4)
0 件の賞賛
返信
2 返答(返信)

1,786件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi vijith G,

 Different yocto version has big change.Can you tell me the yocto version you used?

Regards,

zhiming

0 件の賞賛
返信

1,786件の閲覧回数
karangajjar
Senior Contributor II

Hi vijith G,

Are you trying to get the run-level of the system?

For that you can try using below commands:

$ runlevel

or

$ who -r

Regards,

Karan Gajjar