{"id":319,"date":"2021-06-24T10:13:02","date_gmt":"2021-06-24T02:13:02","guid":{"rendered":"https:\/\/www.iotot.com\/?p=319"},"modified":"2022-05-22T11:23:46","modified_gmt":"2022-05-22T03:23:46","slug":"imx6ul-%e5%bc%80%e5%8f%91%e6%9d%bf-%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e8%87%aa%e5%90%af%e5%8a%a8-%ef%bc%88%e4%b8%8d%e5%a4%aa%e6%ad%a3%e7%a1%ae%e7%9a%84%e4%b8%80%e7%a7%8d%e6%96%b9%e6%b3%95%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.iotot.com\/?p=319","title":{"rendered":"imx6UL  \u5f00\u53d1\u677f \u8bbe\u7f6e\u7a0b\u5e8f\u81ea\u542f\u52a8"},"content":{"rendered":"\n<p>\u7b2c\u4e00\u6b65\uff0c\u521b\u5efa\u5f00\u542f\u811a\u672c apprun  \uff0c\u76ee\u5f55\uff1atouch  \/etc\/init.d\/apprun<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/sh\n#\n# start\/stop app daemon.\n\n### BEGIN INIT INFO\n# Provides:          app\n# Required-Start:    $network\n# Required-Stop:     $network\n# Default-Start:     S 2 3 4 5\n# Default-Stop:      0 1 6\n# Short-Description: app daemon\n# Description:       app is a daemon used to enable NFC features\n### END INIT INFO\n\nchmod 755 \/home\/root\/ftp\/app\n\n#\u8bbe\u7f6eapp \u6240\u5728\u76ee\u5f55\nDAEMON=\/home\/root\/ftp\/app   \nPIDFILE=\/var\/run\/app.pid\nDESC=\"Linux app daemon for firets\"\n\nif [ -f \/etc\/default\/app ] ; then\n        . \/etc\/default\/app\nfi\n\nset -e\n\ndo_start() {\n       $DAEMON > \/tmp\/app.log 2>&amp;1 &amp;\n}\n\ndo_stop() {\n        start-stop-daemon --stop --name app --quiet\n}\n\ncase \"$1\" in\n  start)\n        echo \"Starting $DESC\"\n        do_start\n        ;;\n  stop)\n        echo \"Stopping $DESC\"\n        do_stop\n        ;;\n  restart|force-reload)\n        echo \"Restarting $DESC\"\n        do_stop\n        sleep 1\n        do_start\n        ;;\n  *)\n        echo \"Usage: $0 {start|stop|restart|force-reload}\" >&amp;2\n        exit 1\n        ;;\nesac\n\nexit 0\n\n<\/pre>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff1a\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7ea7\u522b\uff1asudo runlevel ,\u6bd4\u5982 N 5  \u5c31\u662f5\u7ea7\u522b\u3002  \u5efa\u7acb\u8f6f\u94fe\u63a5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ln -s \/etc\/init.d\/apprun \/etc\/rc5.d\/S50appgo<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b65\uff0c\u521b\u5efa\u5f00\u542f\u811a\u672c apprun \uff0c\u76ee\u5f55\uff1atouch \/etc\/init.d\/apprun \u7b2c\u4e8c\u6b65\uff1a\u67e5\u770b\u5f53\u524d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":848,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/319"}],"collection":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":5,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":326,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions\/326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/media\/848"}],"wp:attachment":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}