导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. sergpenshin
    3. 最佳
    S
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 597
    • 主题 4
    • 帖子 10
    • 最佳 2
    • 群组 0

    sergpenshin 发布的最佳帖子

    • Yuzukilizard V851S autostart settings

      Hi.
      would tell me please (show an example) how to configure the system so that the required executable file is launched at system startup.

      发布在 V Series
      S
      sergpenshin
    • 回复: Yuzukilizard V851S autostart settings

      @whycan
      Thank you. Yes indeed, in this way it works.
      But can it be done as Init Scripts?
      I tried to create a script in init.d

      #!/bin/sh /etc/rc.common
      # Example script
      # Copyright (C) 2007 OpenWrt.org
      
      START=41
      STOP=15
      
      start()
      {
      echo start
      my_example
      }
      stop()
      {
      echo stop
      killall my_example
      }
      

      Further

      /etc/init.d/my_example enable
      

      Then I made a reboot - but my_example did not start.
      At the same time, the script itself is working, if execute

      /etc/init.d/my_example start
      

      everything works. Apparently I did something wrong. Please help me find the error!

      发布在 V Series
      S
      sergpenshin
    • 1 / 1