I am running Fedora 19 and tried to install an old custom
/etc/rc.d/init.d script. When it didn't work I decided to try to convert it to a new systemd script.
I deleted my script
/etc/rc.d/init.d script/license-autossh, created a new file
/usr/lib/systemd/system/license-autossh.service and made a symbolic link in
/etc/systemd/system/ pointing to the latter file.
My problem now is that when I run
sudo systemctl status license-autossh.service it is clearly running a copy of my old
init.d script, even though I deleted it. I tried running
sudo systemctl --system daemon-reload but that didn't fix anything.
sudo systemctl start license-autossh.service does actually do what I specified in the new systemctl script.
How do I tell systemctl to forget the old init.d script and use the new systemd service file?