Home | History | Annotate | Download | only in flip_server

Lines Matching refs:PIDFILE

115 static int OpenPidFile(const char *pidfile)
121 fd = open(pidfile, O_RDWR | O_CREAT, 0600);
123 cerr << "Could not open pid file '" << pidfile << "' for reading.\n";
138 cerr << "Could not stat pid file '" << pidfile << "': " << strerror(errno)
143 cerr << "Could not truncate pid file '" << pidfile << "': "
207 cout << "\t--pidfile=<filepath> (default /var/run/flip-server.pid)\n";
212 if (cl.HasSwitch("pidfile")) {
213 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str());
215 pidfile_fd = OpenPidFile(PIDFILE);
409 unlink(PIDFILE);