and does not matter where i put it in /etc/systemd/system/ or /usr/lib/systemd/system/
after command ‘systemctl daemon-reload’ or even reboot I still got
[root@localhost tomjan]# systemctl enable touchFake.service
Failed to enable unit: Unit file touchFake.service does not exist.
Does you hav an ide what could be wrong?
Thank you
The use of the word “touch” is confusing the issue here.
“touch” is a command to change file timestamps, but if used with a non-existing file name it will create an empty file. So if at a shell command line you type:
$ touch Fake.service
touch will create an empty file named Fake.service which you can then open with your favorite editor and populate with what ever contents you desire.
So open your text editor and save a file named FakeGPU.service
and add the contents as described above with the following changes.
Don’t execute scripts from roots folder, put them in /usr/local/bin/
Rename your script to FakeGpuForSlumLockFile.sh
So this line would be:
ExecStart=/usr/local/bin/FakeGpuForSlumLockFile.sh
Anyway I don’t know if this will help because I think you are misunderstanding words that describe commands in the guide you are using.
Hi All,
Guys I don’t know how it is possible but next day i was able to set fake gpu service without any problems i met day before. (for a while i was sure it is problem of setting it up on vbox machine. but i set it on rocky host server and on rocky vm and both works)
Finally i set it up like this
[root@localhost tomjan]# ls -alh /etc/systemd/system/touchFake.service
-rw-r–r–. 1 root root 505 Mar 25 14:46 /etc/systemd/system/touchFake.service