{"id":480,"date":"2015-09-03T11:20:36","date_gmt":"2015-09-03T03:20:36","guid":{"rendered":"http:\/\/gnonstop.linkpc.net\/~gordon\/?p=480"},"modified":"2025-08-24T23:24:14","modified_gmt":"2025-08-24T15:24:14","slug":"how-can-i-configure-a-service-to-run-at-startup","status":"publish","type":"post","link":"https:\/\/guerilla.ddns.net\/wp\/?p=480","title":{"rendered":"How can I configure a service to run at startup"},"content":{"rendered":"<ol>\n<li>Edit <em>\/etc\/rc.local<\/em> file with this command:\n<pre><code class=\"language-bash\" data-line=\"\">sudo nano \/etc\/rc.local<\/code><\/pre>\n<\/li>\n<li>Add your script that you want to run on boot process there, for example:\n<pre><code class=\"language-bash\" data-line=\"\">sh \/home\/ivan\/iptables.sh echo &#039;Iptable Configured!&#039;<\/code><\/pre>\n<\/li>\n<li>Review the comments included in that file and make sure a exit 0 is at the end.<\/li>\n<li>Save the file, and your script will run on boot process.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<br \/>\nref: <a href=\"http:\/\/askubuntu.com\/questions\/9382\/how-can-i-configure-a-service-to-run-at-startup\" target=\"_blank\" rel=\"noopener\">How can I configure a service to run at startup<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit \/etc\/rc.local file with this command: sudo nano \/e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[63,18],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-infotech","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=480"}],"version-history":[{"count":5,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":3487,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/480\/revisions\/3487"}],"wp:attachment":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}