{"id":1495,"date":"2019-07-26T20:08:00","date_gmt":"2019-07-26T18:08:00","guid":{"rendered":""},"modified":"2020-05-18T20:40:43","modified_gmt":"2020-05-18T18:40:43","slug":"start-boot-service-in-linux","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=1495","title":{"rendered":"start boot service in Linux"},"content":{"rendered":"<ol>\n<li>Run this command\n<pre>sudo nano \/etc\/systemd\/system\/<strong>YOUR_SERVICE_NAME<\/strong>.service<\/pre>\n<\/li>\n<li>Paste in the command below. Press <em>ctrl + x then y<\/em> to save and exit\n<pre>[Unit]\nDescription=lampp\n \n[Service]\nExecStart=\/opt\/lampp\/lampp start\nExecStop=\/opt\/lampp\/lampp stop\nType=forking\n \n[Install]\nWantedBy=multi-user.target<\/pre>\n<\/li>\n<li>\n<div class=\"p1\">\n<span class=\"s1\">Reload services<\/span><\/div>\n<pre>sudo systemctl daemon-reload<\/pre>\n<\/li>\n<li>\n<div class=\"p1\">\nEnable the service<\/div>\n<pre>sudo systemctl enable <strong>YOUR_SERVICE_NAME<\/strong><\/pre>\n<\/li>\n<li>Start the service\n<pre style=\"background-color: transparent;\">sudo systemctl start <strong>YOUR_SERVICE_NAME<\/strong><\/pre>\n<\/li>\n<li>Check the status of your service\n<pre style=\"background-color: transparent;\">systemctl status <strong>YOUR_SERVICE_NAME<\/strong><\/pre>\n<\/li>\n<li style=\"background-color: transparent;\">Reboot your device and the program\/script should be running. If it crashes it will attempt to restart<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Run this command sudo nano \/etc\/systemd\/system\/YOUR_SERVICE_NAME.service Paste in the command below. Press ctrl + x then y to save and exit [Unit] Description=lampp [Service] ExecStart=\/opt\/lampp\/lampp start ExecStop=\/opt\/lampp\/lampp stop Type=forking [Install] WantedBy=multi-user.target Reload services sudo systemctl daemon-reload Enable the service sudo systemctl enable YOUR_SERVICE_NAME Start the service sudo systemctl start YOUR_SERVICE_NAME Check the status of your &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=1495\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;start boot service in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[573],"tags":[168,169,49],"class_list":["post-1495","post","type-post","status-publish","format-standard","hentry","category-sistema-operativo","tag-boot-service","tag-lampp","tag-linux"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1495"}],"version-history":[{"count":2,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1495\/revisions"}],"predecessor-version":[{"id":2007,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1495\/revisions\/2007"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}