systemd not restarting my process

Solution 1:

So I figured it out. This solved my issue:

[Unit]
Description=HB service started

[Service]
WorkingDirectory=/home/debian/hb/program
ExecStart=/home/debian/hb/program/program1
Restart=always # or always, on-abort, etc
RestartSec=3

[Install]
WantedBy=multi-user.target

Basically I changed the order of the things, and it worked... Weird but that did the trick.