systemctl status shows inactive dead : <p>I am trying to write my own (simple) systemd service which does something simple.( Like writing numbers 1 to 10 to a file, using the shell script).
My service file looks like below.</p>

<pre><code>[Unit]
Description=NandaGopal
Documentation=https://google.com
After=multi-user.target

[Service]
Type=forking  
RemainAfterExit=yes
ExecStart=/usr/bin/hello.sh &amp;

[Install]
RequiredBy = multi-user.target
</code></pre>

<p>This is my shell script.</p>

<pre><code>#!/usr/bin/env bash

source /etc/profile
a=0
while [ $a -lt 10 ]
do
   echo $a &gt;&gt; /var/log//t.txt
        a=`expr $a + 1`
done
</code></pre>

<p>For some reason, the service doesn't come up and systemctl is showing the below output. </p>

<pre><code>root@TARGET:~ &gt;systemctl status -l hello
* hello.service - NandaGopal
   Loaded: loaded (/usr/lib/systemd/system/hello.service; disabled; vendor     preset: enabled)
   Active: inactive (dead)
    Docs: https://google.com
</code></pre>

<p>Been trying to figure out what went wrong for the last 2 days. 
Could anyone please help me here?</p>

<p>Regards,
nandanator</p>
