So I have written a service file that should automatically start up the program that I have already created and would just like to begin on boot whenever the unit shuts off/fails and has to reboot
The service file is as follows:
Code: Select all
ExecStart=sudo /usr/bin/python /home/pi/Desktop/FolderOnDesktop/Program.py
My issues comes about with my denied access to writing to the /home/pi/systemd/system folder. I am told upon either writing from the command prompt or just placing my service file within the folder that I am denied access.
My two questions:
Would the code that I have written for the service file start my program on boot and allow it to write to a .csv file that the program already does?
How do I gain access to the systemd folder?