I want to run start a systemd service at boot.
For this reason I issued the following commands:
sudo systemctl enable myservice@myconffile
sudo systemctl start myservice@myconffile
Those command made the systemd service openvpn-client run at boot time on Ubuntu.
But the service doesn’t appear to run at boot on Fedora.
How to run a systemd service at boot time?
dalto
(dalto)
2
Fundamentally that is how you do it.
However, that requires myservice@.service
to have the correct format and be at a valid location. Can we see the contents of that file?
2 Likes
vgaetera
(Vladislav Grigoryev)
3
Check the output:
systemd-analyze verify myservice@myconffile
journalctl --no-pager -b -u myservice@myconffile
2 Likes