/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/udhcpd/ |
H A D | pidfile.h | 0 /* pidfile.h
23 int pidfile_acquire(char *pidfile);
25 void pidfile_delete(char *pidfile);
|
H A D | pidfile.c | 0 /* pidfile.c
32 int pidfile_acquire(char *pidfile)
argument 35 if (pidfile == NULL) return -1;
37 pid_fd = open(pidfile, O_CREAT | O_WRONLY, 0644);
39 LOG(LOG_ERR, "Unable to open pidfile %s: %s\n",
40 pidfile, strerror(errno));
64 void pidfile_delete(char *pidfile)
argument 66 if (pidfile) unlink(pidfile);
|
H A D | dhcpc.h | 23 char *pidfile; /* Optionally store the process ID */
member in struct:client_config_t
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna/ |
H A D | daemonize.c | 69 int pidfile; local 74 if( (pidfile = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0) 76 DPRINTF(E_ERROR, L_GENERAL, "Unable to open pidfile for writing %s: %s\n", fname, strerror(errno)); 84 "Unable to write to pidfile %s: snprintf(): FAILED\n", fname); 85 close(pidfile); 90 if(write(pidfile, pidstring, pidstringlen) < 0) 91 DPRINTF(E_ERROR, L_GENERAL, "Unable to write to pidfile %s: %s\n", fname, strerror(errno)); 94 close(pidfile); 103 int pidfile; local 109 if( (pidfile [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna.03.14/ |
H A D | daemonize.c | 96 int pidfile; local 101 if( (pidfile = open(fname, O_WRONLY|O_CREAT, 0644)) < 0) 103 DPRINTF(E_ERROR, L_GENERAL, "Unable to open pidfile for writing %s: %s\n", fname, strerror(errno)); 111 "Unable to write to pidfile %s: snprintf(): FAILED\n", fname); 112 close(pidfile); 117 if(write(pidfile, pidstring, pidstringlen) < 0) 118 DPRINTF(E_ERROR, L_GENERAL, "Unable to write to pidfile %s: %s\n", fname, strerror(errno)); 121 close(pidfile); 130 int pidfile; local 136 if( (pidfile [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna.07.26/ |
H A D | daemonize.c | 69 int pidfile; local 74 if( (pidfile = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0) 76 DPRINTF(E_ERROR, L_GENERAL, "Unable to open pidfile for writing %s: %s\n", fname, strerror(errno)); 84 "Unable to write to pidfile %s: snprintf(): FAILED\n", fname); 85 close(pidfile); 90 if(write(pidfile, pidstring, pidstringlen) < 0) 91 DPRINTF(E_ERROR, L_GENERAL, "Unable to write to pidfile %s: %s\n", fname, strerror(errno)); 94 close(pidfile); 103 int pidfile; local 109 if( (pidfile [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/tests/ |
H A D | ftp.pm | 33 # pidfromfile returns the pid stored in the given pidfile. The value 39 my $pidfile = $_[0]; 42 if(-f $pidfile && -s $pidfile && open(PIDFH, "<$pidfile")) { 52 # pidfile exists and is alive. This will return 0 on any file related 60 my $pidfile = $_[0]; 62 # fetch pid from pidfile 63 my $pid = pidfromfile($pidfile); 71 # get rid of the certainly invalid pidfile [all...] |
H A D | httpserver.pl | 41 my $pidfile; # http server pid file 52 if($ARGV[0] eq '--pidfile') { 54 $pidfile = $ARGV[1]; 106 if(!$pidfile) { 107 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 115 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
H A D | rtspserver.pl | 41 my $pidfile; # rtsp server pid file 50 if($ARGV[0] eq '--pidfile') { 52 $pidfile = $ARGV[1]; 98 if(!$pidfile) { 99 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 105 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
H A D | tftpserver.pl | 41 my $pidfile; # tftp server pid file 51 if($ARGV[0] eq '--pidfile') { 53 $pidfile = $ARGV[1]; 99 if(!$pidfile) { 100 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 106 $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
H A D | secureserver.pl | 56 my $pidfile; # stunnel pid file 144 elsif($ARGV[0] eq '--pidfile') { 146 $pidfile = "$path/". $ARGV[1]; 165 if(!$pidfile) { 166 $pidfile = "$path/". server_pidfilename($proto, $ipvnum, $idnum); 217 $cmd = "$stunnel -p $certfile -P $pidfile "; 225 print "pid file: $pidfile\n"; 248 pid = $pidfile 272 print "pid = $pidfile\n";
|
H A D | runtests.pl | 271 my %doesntrun; # servers that don't work, identified by pidfile 332 # Load serverpidfile hash with pidfile names for all possible servers. 375 my ($cmd, $pidfile, $timeout, $fake)=@_; 401 if(open(OUT, ">$pidfile")) { 404 logmsg "startnew: $pidfile faked with pid=$child\n" if($verbose); 407 logmsg "startnew: failed to write fake $pidfile with pid=$child\n"; 419 if(-f $pidfile && -s $pidfile && open(PID, "<$pidfile")) { 424 # otherwise it is just likely to be the _previous_ pidfile o [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/distrib/initscripts/ |
H A D | rc.afpd.netbsd.tmpl | 19 pidfile="/var/run/${name}.pid"
|
H A D | rc.papd.netbsd.tmpl | 17 pidfile="/var/run/${name}.pid"
|
H A D | rc.timelord.netbsd.tmpl | 17 pidfile="/var/run/${name}.pid"
|
H A D | rc.atalkd.netbsd.tmpl | 17 pidfile="/var/run/${name}.pid"
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna/linux/ |
H A D | minidlna.init.d.script | 20 start-stop-daemon --start --quiet --pidfile /var/run/minidlna.pid --startas $MINIDLNA -- $ARGS $LSBNAMES
24 start-stop-daemon --stop --quiet --pidfile /var/run/minidlna.pid
29 start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/minidlna.pid
30 start-stop-daemon --start --quiet --pidfile /var/run/minidlna.pid --startas $MINIDLNA -- $ARGS $LSBNAMES
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna.03.14/linux/ |
H A D | minidlna.init.d.script | 32 start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $MINIDLNA -- $ARGS $LSBNAMES 36 start-stop-daemon --stop --quiet --pidfile $PIDFILE 41 start-stop-daemon --stop --retry 5 --quiet --pidfile $PIDFILE 42 start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $MINIDLNA -- $ARGS $LSBNAMES
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna.07.26/linux/ |
H A D | minidlna.init.d.script | 20 start-stop-daemon --start --quiet --pidfile /var/run/minidlna.pid --startas $MINIDLNA -- $ARGS $LSBNAMES 24 start-stop-daemon --stop --quiet --pidfile /var/run/minidlna.pid 29 start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/minidlna.pid 30 start-stop-daemon --start --quiet --pidfile /var/run/minidlna.pid --startas $MINIDLNA -- $ARGS $LSBNAMES
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/util/ |
H A D | server_lock.c | 34 pid_t server_lock(char *program, char *pidfile, int debug) argument 43 if ((pf = fopen(pidfile, "r"))) { 53 if ((pf = fopen(pidfile, "w")) == NULL) { 55 pidfile);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/packaging/Debian/debian-stable/ |
H A D | samba.init | 39 start-stop-daemon --stop --quiet --pidfile $NMBDPID 51 start-stop-daemon --stop --quiet --pidfile $SMBDPID 68 start-stop-daemon --stop --signal HUP --pidfile $SMBDPID
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/packaging/Debian/debian-unstable/ |
H A D | samba.init | 39 start-stop-daemon --stop --quiet --pidfile $NMBDPID 51 start-stop-daemon --stop --quiet --pidfile $SMBDPID 68 start-stop-daemon --stop --signal HUP --pidfile $SMBDPID
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/hotplug2/examples/ |
H A D | hotplug2.initscript | 28 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ 30 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ 40 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/debianutils/ |
H A D | start_stop_daemon.c | 26 static char *pidfile; variable 111 f = fopen(pidfile, "r"); 117 bb_perror_msg_and_die("open pidfile %s", pidfile); 126 if (pidfile) { 160 } else if (pidfile) 161 what = xasprintf("process in pidfile '%s'", pidfile); 200 "make-pidfile\0" No_argument "m" 212 "pidfile\ [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/tests/server/ |
H A D | util.c | 228 FILE *pidfile; local 232 pidfile = fopen(filename, "wb"); 233 if(!pidfile) { 237 fprintf(pidfile, "%ld\n", pid); 238 fclose(pidfile);
|