{"id":60,"date":"2018-05-07T10:49:38","date_gmt":"2018-05-07T08:49:38","guid":{"rendered":"https:\/\/www.funkgui.it\/?p=60"},"modified":"2021-04-24T11:35:27","modified_gmt":"2021-04-24T09:35:27","slug":"abilitare-script-allavvio","status":"publish","type":"post","link":"https:\/\/www.funkgui.it\/index.php\/abilitare-script-allavvio\/","title":{"rendered":"Abilitare Script all&#8217;avvio"},"content":{"rendered":"<p>Se ad esempio non \u00e8 abilitato il classico file \/etc\/rc.local come ultimo script eseguito all&#8217;avvio ecco come procedere:<\/p>\n<blockquote><p>vi\u00a0\/etc\/systemd\/system\/rc-local.service<\/p><\/blockquote>\n<p>e copiare il seguente testo:<\/p>\n<blockquote><p>[Unit]<br \/>\nDescription=\/etc\/rc.local Compatibility<br \/>\nConditionPathExists=\/etc\/rc.local<\/p>\n<p>[Service]<br \/>\nType=forking<br \/>\nExecStart=\/etc\/rc.local start<br \/>\nTimeoutSec=0<br \/>\nStandardOutput=tty<br \/>\nRemainAfterExit=yes<br \/>\nSysVStartPriority=99<\/p>\n<p>[Install]<br \/>\nWantedBy=multi-user.target<\/p><\/blockquote>\n<p>poi\u00a0chmod 777 \/etc\/systemd\/system\/rc-local.service<\/p>\n<p>poi creare il voluto \/etc\/rc.local e darne i permessi di esecuzione<\/p>\n<p>e poi:<\/p>\n<blockquote><p>systemctl enable rc-local<br \/>\nsystemctl start rc-local<\/p>\n<p>e se si vuole verificare lo stato del servizio:<br \/>\nsystemctl status rc-local<\/p><\/blockquote>\n<p>info tratte per comodit\u00e0 da:\u00a0<a href=\"https:\/\/forum.ubuntu-it.org\/viewtopic.php?p=4951293\">https:\/\/forum.ubuntu-it.org\/viewtopic.php?p=4951293<\/a><\/p>\n<p>In debian 10 si pu\u00f2 invece procedere in questo modo:<\/p>\n<p>vi \/etc\/rc.local<br \/>\nchmod 777 \/etc\/rc.local<br \/>\nsystemctl enable rc-local.service<br \/>\nreboot<br \/>\nsystemctl status rc-local.service<br \/>\n#systemctl cat rc-local.service<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se ad esempio non \u00e8 abilitato il classico file \/etc\/rc.local come ultimo script eseguito all&#8217;avvio ecco come procedere: vi\u00a0\/etc\/systemd\/system\/rc-local.service e copiare il seguente testo: [Unit] Description=\/etc\/rc.local Compatibility ConditionPathExists=\/etc\/rc.local [Service] Type=forking ExecStart=\/etc\/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target poi\u00a0chmod 777 \/etc\/systemd\/system\/rc-local.service poi creare il voluto \/etc\/rc.local e darne i permessi di esecuzione e poi: systemctl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":2,"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/posts\/60\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.funkgui.it\/index.php\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}