Hello,
I see below command edit different file:
-
sudo vi /etc/systemd/system/sample.service
-
sudo systemctl edit sample.service
Is it OK? I guess both commands should edit the same service.
First time I edited service by second command and I was able to start it. Status was Active.
But after first comand showed me completelly different file and without my changes.
And later during lab tasks I got below error message while trying to run command sudo systemctl daemon-reload
:
Failed to reload daemon: The name org.freedesktop.PolicyKit1 was not provided by any .service files