added pid and dat file. on service start up writing out understood signals and pid to files in var/. TODO: add relative path handling.