Skip to content

OSブート時にSmartHomeSimulatorを自動起動させると起動タイミングが早すぎてeth0のIPが特定できない場合あり #2

@foobarbazfred

Description

@foobarbazfred

課題:Listen IPを動的に決定しているが、OSブート時はeth0のIPを特定できない場合あり
対策:引数でListen IP を指定できるオプションを追加実装する。rc.localから起動する場合はLiten IPを指定してアプリ起動する
追記:この原因はListenIPを特定できないのではなく、eth0が立ち上がってIPが割り当てられる前にSimulatorが起動されていて、eth0のIPが割り当てられていないのが原因であった。eth0が立ち上がってからsimulatorが起動されていればこの問題は発生しないはず

arg parserの例
https://qiita.com/tronicboy/items/aec31da08047fd72b926

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions