systemctl status shows inactive dead
Few points:
If you use
Type=forking
, it is recommended to specify PidFile.In your case,
Type=simple
, and ExecStart without&
will work.use
systemctl start service-name
to start a serviceThen use
systemctl status service-name
to check its status. status will be inactive/dead if service is not started.
- You have set
Type=Forking
, but your service doesn't work. TryType=oneshot
- You have a "&" your
ExecStart
line, which is not necessary. - The service is
disabled
, which means it was notenabled
to start at boot. You should runsystemctl enable hello
to set it to start at boot.
You can check man systemd.directives
to find an index of all the directives that you can use in your unit
files.