Lines Matching refs:pidfile
89 pos = pidfile.find_last_of("/"); in create()
92 piddir = pidfile.substr(0, pidfile.find_last_of("/")); in create()
94 if (check_dir_exist(piddir) == 0 && pidfile.length()) in create()
102 if (pidfile.length()) in create()
104 out.open(pidfile.c_str()); in create()
108 cout << "Could not create pid file " << pidfile << ": " << strerror(errno) << endl; in create()
112 chmod(pidfile.c_str(), 0644); in create()
113 if(chown(pidfile.c_str(), uid, gid)){} in create()
153 if (pidfile.length()) in create()
215 ret = unlink(pidfile.c_str()); in destroy()
220 out.open(pidfile.c_str()); in destroy()