How do I start a service on boot in debian?
<p>So I created a service and made it executale in /etc/init.d
Then I tried to make it start after boot with the following command:</p>

<pre><code>update-rc.d &lt;myService&gt; defaults
</code></pre>

<p>But the output were warnings of other services (which work just fine by the way) and I don't want to touch those.</p>

<p>My next attempt to solve this was to add the following lines in the rc.local file:</p>

<pre><code>do_start() {
        service &lt;someOtherService&gt; stop
        service &lt;myService&gt; stop
        sleep 5
        service &lt;someOtherService&gt; start
        service &lt;myService&gt; stop
        ........
</code></pre>

<p>As I said, I have some other service that works just fine, but my service which I am currently trying to add wont start after boot.</p>

<p>One more thing that I would like to add is when I manually enter:</p>

<pre><code>service &lt;myService&gt; start/stop
</code></pre>

<p>then it works just fine</p>