* using check_pid() function to check for a running fspd * writing our pid with write_pid() to the file named in pidlogname * deleting the pidfile when existing with remove_pid()