> the downside of tmp is that any process can also delete my > pid file (as opposed to having to be either root or the user > created for the program) Create a subdirectory of /tmp. Your PID file will be safe in there but still get tidied up on reboot.