{"id":45428,"date":"2019-05-16T15:33:14","date_gmt":"2019-05-16T13:33:14","guid":{"rendered":"https:\/\/www.max2play.com\/?post_type=kbe_knowledgebase&#038;p=45428"},"modified":"2019-05-16T15:33:14","modified_gmt":"2019-05-16T13:33:14","slug":"pluginbuilder-script-autostart-on-boot-with-systemd","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/www.max2play.com\/en\/wiki\/pluginbuilder-script-autostart-on-boot-with-systemd\/","title":{"rendered":"Pluginbuilder: Script-Autostart on Boot with Systemd"},"content":{"rendered":"<p>There is a simple way to integrate a script which autostarts when booting your device. You can define which other scripts should get executed during booting. All the configuration and scripts can be edited and managed in the Plugin Builder.<\/p>\n<p>Just follow these few steps:<\/p>\n<h2>Step 1<\/h2>\n<p>Download the <a href=\"https:\/\/www.max2play.com\/portfolio\/plugin-pluginbuilder\/\" target=\"_blank\" rel=\"noopener\">latest version of the Pluginbuilder<\/a>, then choose the Systemd-Script from the drop-down menu.<\/p>\n<p><a href=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/systemd-en.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-45438 size-large\" src=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/systemd-en-1024x575.jpg\" alt=\"\" width=\"1024\" height=\"575\" srcset=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/systemd-en-1024x575.jpg 1024w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/systemd-en-300x169.jpg 300w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/systemd-en-768x432.jpg 768w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/systemd-en.jpg 1228w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2>Step 2<\/h2>\n<p>Copy this part of the code and paste it into the install.sh (without the &#8222;###&#8220; on each line), so that the Systemd-Script gets executed on startup.<\/p>\n<p><a href=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/insertintoinstall-en.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-45437 size-large\" src=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/insertintoinstall-en-1024x620.jpg\" alt=\"\" width=\"1024\" height=\"620\" srcset=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/insertintoinstall-en-1024x620.jpg 1024w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/insertintoinstall-en-300x182.jpg 300w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/insertintoinstall-en-768x465.jpg 768w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/insertintoinstall-en.jpg 1238w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2>Step 3<\/h2>\n<p>This is the path of the script which gets executed on startup through the Systemd-Script. You may change this or other parameters to your needs.<\/p>\n<p><a href=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/directory-en.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-45436 size-large\" src=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/directory-en-1024x622.jpg\" alt=\"\" width=\"1024\" height=\"622\" srcset=\"https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/directory-en-1024x622.jpg 1024w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/directory-en-300x182.jpg 300w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/directory-en-768x466.jpg 768w, https:\/\/www.max2play.com\/wp-content\/uploads\/2019\/05\/directory-en.jpg 1242w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2>Step 4<\/h2>\n<p>Click on Save. You&#8217;re chosen scripts will now autostart when booting your Max2Play device.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a simple way to integrate a script which autostarts when booting your device. You can define which other scripts should get executed during booting. All the configuration and scripts can be edited and managed in the Plugin Builder. Just follow these few steps: Step 1 Download the latest version of the Pluginbuilder, then choose the Systemd-Script from the [&hellip;]<\/p>\n","protected":false},"author":13459,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","kbe_taxonomy":[899],"kbe_tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/45428"}],"collection":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/users\/13459"}],"replies":[{"embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/comments?post=45428"}],"version-history":[{"count":9,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/45428\/revisions"}],"predecessor-version":[{"id":45650,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/45428\/revisions\/45650"}],"wp:attachment":[{"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/media?parent=45428"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_taxonomy?post=45428"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/www.max2play.com\/en\/wp-json\/wp\/v2\/kbe_tags?post=45428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}