autostart bash script as root
Hey ;) Does somebody know how to autostart a bash script as root? If i put a .desktop in /etc/xdg/autostart which runs the script it only works as nemo user.. I search for a way to start my script as root, so that i don't need to start it every time i reboot in terminal... I need thsi, because bind mount only works as root :/ Thanks :)
Did you consider creating a systemd service which would run your script?
strnous ( 2014-01-17 00:15:24 +0200 )editI'll try this in /lib/systemd
jayki ( 2014-01-17 01:10:51 +0200 )edit@jayki It is not just placing your script in /lib/systemd which needs to be done. Please, see i.e. here and/or here
strnous ( 2014-01-17 09:01:22 +0200 )edit