I have several scripts that start when my Raspberry Pi is booted, one of them is to start screen session with IRSSI, but sometimes it can happen that two irssi processes are running.
To avoid that I am using a wrapper script eirssi.sh with just:
ps -C irssi || irssi
Continue reading “Bash check if process is running if not start it”