Hello Team, while working on linux course in the " Service management with SYSTEMD" section and attempting the lab for lab:systemd services number 10 when adding Restart=always to the sample.service file after saving and exiting the file “wq!” and attempting to reload the service by typing the following:
sudo systemctl restart = it does not work
sudo systemctl daemon-reload = it says Too many arguments
sudo systemctl reload = does not work either
has anyone encounter this issue already and if yes, how you reload the services for the changes to be apply to the service?
Update on my own question:
I managed to find the issue, when running systemctl daemon-reload I did not have to include the unit file name “sample.service”.
I guess by only running systemctl daemon-reload, all of the service re-start without interruption