I have a small script on a dev/staging server that runs services inside tmux. The script just creates a few sessions with a few windows each in which various services are running. How can I make this script run each time the system starts after reboot? I would like to have this script run as specified user.
Running script on system start as given user
scripting;startup;not root user
The quickest way is to put a command like su - john -c bla in /etc/rc.local (or whatever variant your distro uses.