Home | History | Annotate | Download | only in flip_server

Lines Matching refs:PIDFILE

106 static int OpenPidFile(const char* pidfile) {
111 fd = open(pidfile, O_RDWR | O_CREAT, 0600);
113 fprintf(stderr, "Could not open pid file '%s' for reading.\n", pidfile);
129 stderr, "Could not stat pid file '%s': %s\n", pidfile, strerror(errno));
136 pidfile,
201 "\t--pidfile=<filepath> (default /var/run/flip-server.pid)\n"
206 if (cl.HasSwitch("pidfile")) {
207 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str());
209 pidfile_fd = OpenPidFile(PIDFILE);
419 unlink(PIDFILE);