specify pid_file depending on app type