I have the following service configured:
[Unit]
Description=HB service started
[Service]
Restart=always # or always, on-abort, etc
RestartSec=3
WorkingDirectory=/home/debian/hb/program
ExecStart=/home/debian/hb/program/program1
[Install]
WantedBy=multi-user.target
Then I do:
ps -ef|grep program1
to get the process id and kill it with "kill". -- just to see if it restarts just as I had it written.
Thing is, the service is NOT restarting!! No matter what I do, whenever I kill the process, the service won't restart. Any idea of what's going on?