Delete orphaned PID files Save the script to a location of your choice. Make sure you changed "example_process" with your actual process/service. chmod +x delete_orphaned_PID_files.sh ./delete_orphaned_PID_files.sh