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

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/udhcpd/
H A Dpidfile.h0 /* pidfile.h
23 int pidfile_acquire(char *pidfile);
25 void pidfile_delete(char *pidfile);
H A Dpidfile.c0 /* 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 Ddhcpc.h23 char *pidfile; /* Optionally store the process ID */ member in struct:client_config_t
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/distrib/initscripts/
H A Drc.afpd.netbsd.tmpl19 pidfile="/var/run/${name}.pid"
20 command_args="-P ${pidfile}"
H A Drc.papd.netbsd.tmpl17 pidfile="/var/run/${name}.pid"
H A Drc.timelord.netbsd.tmpl17 pidfile="/var/run/${name}.pid"
H A Drc.atalkd.netbsd.tmpl17 pidfile="/var/run/${name}.pid"
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna/
H A Ddaemonize.c69 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna.03.14/
H A Ddaemonize.c96 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna.07.26/
H A Ddaemonize.c69 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/tests/
H A Dftp.pm33 # 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 Dhttpserver.pl41 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 Drtspserver.pl41 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 Dtftpserver.pl41 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\" ";
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/distrib/initscripts/
H A Drc.afpd.netbsd.tmpl19 pidfile="/var/run/${name}.pid"
H A Drc.papd.netbsd.tmpl17 pidfile="/var/run/${name}.pid"
H A Drc.timelord.netbsd.tmpl17 pidfile="/var/run/${name}.pid"
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna/linux/
H A Dminidlna.init.d.script20 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna.03.14/linux/
H A Dminidlna.init.d.script32 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna.07.26/linux/
H A Dminidlna.init.d.script20 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/util/
H A Dserver_lock.c34 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);
103 int check_lockfile(const char *program, const char *pidfile) argument
110 if ((pf = fopen(pidfile, "r"))) {
125 int create_lockfile(const char *program, const char *pidfile) argument
132 if (check_lockfile(program, pidfile) != 0)
135 /* Write PID to pidfile */
137 if ((pf = fopen(pidfile, "
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/util/
H A Dserver_lock.c34 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/packaging/Debian/debian-stable/
H A Dsamba.init39 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/packaging/Debian/debian-unstable/
H A Dsamba.init39 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-WNDR4500v2-V1.0.0.60_1.0.38/src/router/hotplug2/examples/
H A Dhotplug2.initscript28 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

Completed in 230 milliseconds

123