{"id":178,"date":"2009-05-16T14:48:21","date_gmt":"2009-05-16T13:48:21","guid":{"rendered":"http:\/\/www.lightsoft.se\/?p=178"},"modified":"2009-05-16T14:48:21","modified_gmt":"2009-05-16T13:48:21","slug":"add-boot-script-on-linux","status":"publish","type":"post","link":"https:\/\/www.lightsoftai.com\/?p=178","title":{"rendered":"Add boot script on linux"},"content":{"rendered":"<p>Since I always forgot the information about how to add boot script I fought I should add it here:<\/p>\n<p>Usually the script that should be stored should be placed in the path <strong>\/etc\/init.d\/<\/strong> then a reference (link) from the \/etc\/rc[1-6].d paths to the script is used to start the script at boot.<\/p>\n<p>Depending on the start-sequence the script should have it should be placed in the different directorys, Example: where the rc0.d directory is first path to go thru, and the rc6.d is run last etc..<\/p>\n<p>First: Man pages for the rc is used like this:  <strong>#man update-rc.d<\/strong><\/p>\n<p>Example if we have a script in \/etc\/init.d\/startUpScript<\/p>\n<p>To add a script as default:<br \/>\n<code lang=\"sys\">#update-rc.d -n startUpScript defaults<\/code><\/p>\n<p>To remove it:<br \/>\n<code lang=\"sys\">#update-rc.d -n startUpScript remove<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I always forgot the information about how to add boot script I fought I should add it here: Usually the script that should be stored should be placed in the path \/etc\/init.d\/ then a reference (link) from the \/etc\/rc[1-6].d paths to the script is used to start the script at boot. Depending on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[36],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-linux","tag-tips"],"_links":{"self":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178"}],"version-history":[{"count":11,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}