Searched refs:pidfile (Results 1 - 18 of 18) sorted by relevance

/external/wpa_supplicant_8/wpa_supplicant/examples/
H A Dudhcpd-p2p.conf63 pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
/external/dropbear/debian/
H A Ddropbear.init34 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \
41 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid
47 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid
49 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \
/external/dropbear/
H A Dsvr-main.c120 FILE *pidfile = NULL; local
154 pidfile = fopen(svr_opts.pidfile, "w");
155 if (pidfile) {
156 fprintf(pidfile, "%d\n", getpid());
157 fclose(pidfile);
197 unlink(svr_opts.pidfile);
H A Drunopts.h87 char * pidfile; member in struct:svr_runopts
H A Dsvr-runopts.c114 svr_opts.pidfile = DROPBEAR_PIDFILE;
196 next = &svr_opts.pidfile;
/external/webkit/Tools/Scripts/
H A Dnew-run-webkit-websocketserver65 option_parser.add_option('--pidfile', help='path to pid file.')
91 if options.pidfile:
92 kwds['pidfile'] = options.pidfile
/external/bluetooth/bluez/compat/
H A Dpand.c81 static char *pidfile = NULL; variable
509 fd = open(pidfile, O_WRONLY|O_TRUNC|O_CREAT|O_EXCL, 0644);
512 fd = open(pidfile, O_RDONLY);
514 syslog(LOG_ERR, "Could not read old pidfile: %s(%d)",
527 syslog(LOG_ERR, "Could not fdopen old pidfile: %s(%d)",
542 syslog(LOG_INFO, "Removing stale pidfile");
543 unlink(pidfile);
549 pidfile = NULL;
558 syslog(LOG_ERR, "Could not fdopen new pidfile: %s(%d)",
561 unlink(pidfile);
[all...]
/external/chromium/net/tools/flip_server/
H A Dflip_in_mem_edsm_server.cc115 static int OpenPidFile(const char *pidfile) argument
121 fd = open(pidfile, O_RDWR | O_CREAT, 0600);
123 cerr << "Could not open pid file '" << pidfile << "' for reading.\n"; local
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());
/external/dbus/bus/
H A Dbus.c52 char *pidfile; member in struct:BusContext
291 const char *user, *pidfile; local
310 pidfile = bus_config_parser_get_pidfile (parser);
311 if (pidfile != NULL)
316 _dbus_string_init_const (&u, pidfile);
338 pidfile);
347 context->pidfile = _dbus_strdup (pidfile);
833 if (context->pidfile)
834 _dbus_string_init_const (&u, context->pidfile);
[all...]
H A Dconfig-parser.c108 char *pidfile; /**< PID file */ member in struct:BusConfigParser
319 if (included->pidfile != NULL)
321 dbus_free (parser->pidfile);
322 parser->pidfile = included->pidfile;
323 included->pidfile = NULL;
491 dbus_free (parser->pidfile);
752 if (!check_no_attributes (parser, "pidfile", attribute_names, attribute_values, error))
2347 dbus_free (parser->pidfile);
2348 parser->pidfile
[all...]
/external/dbus/dbus/
H A Ddbus-sysdeps-util-unix.c68 * @param pidfile #NULL, or pidfile to create
75 _dbus_become_daemon (const DBusString *pidfile, argument
139 if (!_dbus_write_pid_to_file_and_pipe (pidfile, print_pid_pipe,
216 * Writes the given pid_to_write to a pidfile (if non-NULL) and/or to a
217 * pipe (if non-NULL). Does nothing if pidfile and print_pid_pipe are both
220 * @param pidfile the file to write to or #NULL
227 _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile, argument
232 if (pidfile)
234 _dbus_verbose ("writing pid file %s\n", _dbus_string_get_const_data (pidfile));
[all...]
H A Ddbus-sysdeps-util-win.c56 * @param pidfile #NULL, or pidfile to create
63 _dbus_become_daemon (const DBusString *pidfile, argument
156 * Writes the given pid_to_write to a pidfile (if non-NULL) and/or to a
157 * pipe (if non-NULL). Does nothing if pidfile and print_pid_pipe are both
160 * @param pidfile the file to write to or #NULL
167 _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile, argument
172 if (pidfile)
174 _dbus_verbose ("writing pid file %s\n", _dbus_string_get_const_data (pidfile));
175 if (!_dbus_write_pid_file (pidfile,
[all...]
H A Ddbus-sysdeps.h403 dbus_bool_t _dbus_become_daemon (const DBusString *pidfile,
412 dbus_bool_t _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile,
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/
H A Dwebsocket_server.py100 pidfile=None):
120 self._pidfile = pidfile
/external/ppp/pppd/
H A Dmain.c855 FILE *pidfile; local
859 if ((pidfile = fopen(pidfilename, "w")) != NULL) {
860 fprintf(pidfile, "%d\n", pid);
861 (void) fclose(pidfile);
874 FILE *pidfile; local
881 if ((pidfile = fopen(linkpidfile, "w")) != NULL) {
882 fprintf(pidfile, "%d\n", pid);
884 fprintf(pidfile, "%s\n", ifname);
885 (void) fclose(pidfile);
/external/dhcpcd/
H A Ddhcpcd.c104 static char *pidfile; variable
143 if ((fp = fopen(pidfile, "r")) == NULL) {
198 unlink(pidfile);
201 free(pidfile);
1840 pidfile = xmalloc(len);
1842 snprintf(pidfile, len, PIDFILE, "-", argv[optind]);
1844 snprintf(pidfile, len, PIDFILE, "", "");
1939 unlink(pidfile);
1970 pid, pidfile);
1984 pidfd = open(pidfile, O_WRONL
[all...]
H A Dclient.c1846 unlink(options->pidfile);
/external/dnsmasq/src/
H A Ddnsmasq.c336 /* write pidfile _after_ forking ! */
339 FILE *pidfile; local
342 if ((pidfile = fopen(daemon->runfile, "w")))
344 fprintf(pidfile, "%d\n", (int) getpid());
345 fclose(pidfile);
790 die(_("failed to open pidfile %s: %s"), daemon->runfile, EC_FILE);

Completed in 856 milliseconds