{"id":542,"date":"2017-03-12T22:33:12","date_gmt":"2017-03-12T22:33:12","guid":{"rendered":"http:\/\/watchdiana.fail\/blog\/?p=542"},"modified":"2017-03-13T01:45:22","modified_gmt":"2017-03-13T01:45:22","slug":"init-dwtf","status":"publish","type":"post","link":"https:\/\/watchdiana.fail\/blog\/2017\/03\/12\/init-dwtf\/","title":{"rendered":"init.d\/wtf"},"content":{"rendered":"<p>When using a shell script in \/etc\/init.d to start up a command, make sure you put the shell script there, and not the compiled program.<br \/>\n<br \/>\nIt didn&#8217;t work anyhow, so I&#8217;m calling it as a cron job on reboot, but I&#8217;m pretty sure the point still stands.<br \/>\n<br \/>\n<strong>ETA:<\/strong> Aaah.  So, there are things called runlevels, and Rasbian is based on Debian, which has them.  I&#8217;m more a systemd person, so I was looking at the wrong sort of help file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using a shell script in \/etc\/init.d to start up a command, make sure you put the shell script there, and not the compiled program. It didn&#8217;t work anyhow, so I&#8217;m calling it as a cron job on reboot, but I&#8217;m pretty sure the point still stands. ETA: Aaah. So, there are things called runlevels, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[91,93,43,56,27],"class_list":["post-542","post","type-post","status-publish","format-standard","hentry","category-oses","tag-fun-with-debian","tag-fun-with-linux","tag-fun-with-the-raspberry-pi","tag-things-i-do-because-im-bored","tag-things-i-do-because-im-stupid","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":3,"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/posts\/542\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/watchdiana.fail\/blog\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}