quick question(hopefully), is this example correct?
#will this work to run the script as root at startup (after graphical.target)??? #if yes, does the script need to be in a certain directory? #does the ownership of script need to be set to root for this to work?? [Unit] Description=run start-driver.sh at boot After=network.target [Service] User=root Type=oneshot ExecStart=./~/Documents/pilote_tablette_graphique/HuionKamvasGT220v2LinuxDriver/start-driver.sh #is the "./" needed to run the script from a service? [Install] WantedBy=multi-user.target
i would like to know either way for my own education and future use or running a script as root at startup, ive been looking for a while through wiki’s/posts but im not sure. any help would be appreciated.
also, would “sudo” have to be removed from any lines in start-driver.sh since it would already be run as root in the first place? or would it not matter?