Home
last modified time | relevance | path

Searched refs:pidfile (Results 1 – 25 of 3713) sorted by relevance

12345678910>>...149

/dports/devel/p5-Proc-Pidfile/Proc-Pidfile-1.09/lib/Proc/
H A DPidfile.pm31 $pidfile = $1 if ($pidfile =~ /^\s*(.*)\s*/);
34 $self->{pidfile} = $pidfile;
47 sub pidfile subroutine
63 my $pidfile = $self->{pidfile};
65 open( PID, $pidfile ) or croak "can't read pid file $pidfile\n";
100 my $pidfile = $self->{pidfile};
130 open( PID, ">$pidfile" ) or croak "Can't write to $pidfile\n";
139 open( PID, ">$pidfile" ) or croak "Can't write to $pidfile: $!\n";
155 my $pidfile = $self->{pidfile};
157 if ( $pidfile and -e $pidfile ) {
[all …]
/dports/devel/py-pid/pid-3.0.4/tests/
H A Dtest_pid.py75 pidfile = pid.PidFile()
76 pidfile.create()
77 pidfile.close()
287 @pidfile()
310 pidfile.create()
314 pidfile.close()
320 pidfile.create()
325 pidfile.close()
347 pidfile.setup()
408 with pidfile:
[all …]
/dports/devel/p5-Proc-Pidfile/Proc-Pidfile-1.09/t/
H A Dpidfile.t22 $pidfile = $obj->pidfile();
30 unlink( $pidfile ) if -e $pidfile;
31 $obj = Proc::Pidfile->new( pidfile => $pidfile );
32 is( $obj->pidfile(), $pidfile, "temp pidfile matches" );
38 $pidfile = $obj->pidfile();
100 $pidfile = $DEFAULT_PIDFILE;
101 unlink( $pidfile ) if -e $pidfile;
106 eval { $obj = Proc::Pidfile->new( pidfile => $pidfile, retries => 0 ); };
120 $pidfile = $DEFAULT_PIDFILE;
121 unlink( $pidfile ) if -e $pidfile;
[all …]
/dports/mail/mailutils/mailutils-3.13/libmailutils/base/
H A Dpidfile.c35 static char *pidfile; variable
88 if (pidfile) in mu_daemon_create_pidfile()
89 free (pidfile); in mu_daemon_create_pidfile()
91 if (!pidfile) in mu_daemon_create_pidfile()
96 if (pidfile == p) in mu_daemon_create_pidfile()
98 free (pidfile); in mu_daemon_create_pidfile()
99 pidfile = NULL; in mu_daemon_create_pidfile()
109 free (pidfile); in mu_daemon_create_pidfile()
110 pidfile = NULL; in mu_daemon_create_pidfile()
117 unlink (pidfile); in mu_daemon_create_pidfile()
[all …]
/dports/devel/p5-No-Worries/No-Worries-1.6/t/
H A D1pidfile.t11 our($tmpdir, $pidfile, $pid, $tmp);
14 $pidfile = "$tmpdir/pidfile";
17 ok(! -e $pidfile, "clean start");
20 eval { pf_check($pidfile) };
22 eval { pf_touch($pidfile) };
26 eval { pf_status($pidfile) };
30 eval { pf_unset($pidfile) };
33 pf_set($pidfile);
37 $tmp = pf_status($pidfile);
41 eval { pf_set($pidfile) };
[all …]
/dports/net/u6rd/u6rd-1.6/
H A Dutil.c44 static char *pidfile = NULL; variable
76 if (pidfile != NULL || pidfile_fd != -1) { in make_pidfile()
94 if ((pidfile_fd = open(pidfile, in make_pidfile()
146 if (pidfile == NULL && pidfile_fd == -1) in cleanup_pidfile()
148 if (pidfile == NULL || pidfile_fd == -1) { in cleanup_pidfile()
156 else if (stat(pidfile, &sb2) == -1) in cleanup_pidfile()
162 if (unlink(pidfile) == -1 && in cleanup_pidfile()
167 free(pidfile); in cleanup_pidfile()
168 pidfile = NULL; in cleanup_pidfile()
180 free(pidfile); in lose_pidfile()
[all …]
/dports/audio/darkice/darkice-1.4/
H A Drc.darkice16 pidfile=/var/run/darkice.pid
40 if [ -f $pidfile ]; then
41 PID=`cat $pidfile`
48 rm -f $pidfile
60 echo $! > $pidfile
71 if [ -f $pidfile ]; then
73 PID=`cat $pidfile`
77 rm -f $pidfile
85 if [ -f $pidfile ]; then
86 PID=`cat $pidfile`
[all …]
/dports/databases/pgbouncer/pgbouncer-1.16.0/lib/usual/
H A Ddaemon.c60 if (!pidfile || !pidfile[0]) in signal_pidfile()
65 if (stat(pidfile, &st) < 0) in signal_pidfile()
69 fd = open(pidfile, O_RDONLY); in signal_pidfile()
103 if (signal_pidfile(pidfile, 0)) in check_pidfile()
107 unlink(pidfile); in check_pidfile()
119 if (!pidfile || !pidfile[0]) in write_pidfile()
124 g_pidfile = strdup(pidfile); in write_pidfile()
172 if (pidfile && pidfile[0]) { in daemonize()
173 check_pidfile(pidfile); in daemonize()
175 write_pidfile(pidfile, true); in daemonize()
[all …]
/dports/www/py-gunicorn/gunicorn-19.9.0/tests/
H A Dtest_pidfile.py14 import gunicorn.pidfile
28 pidfile = gunicorn.pidfile.Pidfile('test.pid')
30 assert pidfile.validate() is None
36 pidfile = gunicorn.pidfile.Pidfile('test.pid')
37 assert pidfile.validate() == 1
43 pidfile = gunicorn.pidfile.Pidfile('test.pid')
44 assert pidfile.validate() is None
50 pidfile = gunicorn.pidfile.Pidfile('test.pid')
52 assert pidfile.validate() == 1
58 pidfile = gunicorn.pidfile.Pidfile('test.pid')
[all …]
/dports/www/e2guardian/e2guardian-5.3.4/src/
H A DSysV.cpp29 pid_t getpid(std::string pidfile);
41 pid_t getpid(std::string pidfile) in getpid() argument
43 pid_t p = getpidfromfile(pidfile); in getpid()
106 pid_t p = getpid(pidfile); in sysv_kill()
126 int sysv_hup(std::string pidfile) in sysv_hup() argument
128 pid_t p = getpid(pidfile); in sysv_hup()
145 int sysv_usr1(std::string pidfile) in sysv_usr1() argument
147 pid_t p = getpid(pidfile); in sysv_usr1()
166 pid_t p = getpid(pidfile); in sysv_showpid()
178 unlink(pidfile.c_str()); in sysv_openpidfile()
[all …]
/dports/sysutils/pxp-agent/pxp-agent-1.15.16/ext/debian/
H A Dpxp-agent.init16 pidfile="${piddir}/${prog}.pid"
26 start-stop-daemon --stop --quiet --signal HUP --pidfile $pidfile --name $prog
31 start-stop-daemon --start --quiet --pidfile $pidfile --startas $exec -- $PXP_AGENT_OPTIONS
35 start-stop-daemon --stop --retry TERM/10/KILL/5 --quiet --oknodo --pidfile $pidfile --name $prog
43 rm -f "${pidfile}"
58 local pidfile daemon name status
60 pidfile=
64 p) pidfile="$OPTARG";;
69 if [ -n "$pidfile" ]; then
70 pidfile="-p $pidfile"
[all …]
/dports/security/stunnel/stunnel-5.60/tools/
H A Dstunnel.init.in49 local res file args pidfile warn status
63 pidfile=`get_pidfile $file`
86 local sig file pidfile status
92 pidfile=`get_pidfile $file`
93 if [ ! -e "$pidfile" ]; then
112 local res file pidfile status
117 pidfile=`get_pidfile "$file"`
118 if [ ! -e "$pidfile" ]; then
141 local res file pidfile status args
146 pidfile=`get_pidfile "$file"`
[all …]
/dports/devel/hs-git-annex/git-annex-8.20210903/Utility/
H A DDaemon.hs49 maybe noop lockPidFile pidfile
76 foreground pidfile a = do function
78 maybe noop lockPidFile pidfile
96 lockPidFile pidfile = do function
109 rename newfile pidfile
111 newfile = pidfile ++ ".new"
117 writeFile pidfile (show pid)
149 "stale pid in " ++ pidfile ++
168 stopDaemon pidfile = go =<< checkDaemon pidfile function
184 winLockFile pid pidfile = do
[all …]
/dports/sysutils/p5-Ubic/Ubic-1.58/t/
H A Ddaemon.t27 pidfile => "tfiles/pid",
51 pidfile => "tfiles/pid",
63 pidfile => "tfiles/pid",
86 pidfile => 'tfiles/pid',
101 pidfile => 'tfiles/pid',
124 pidfile => 'tfiles/pid',
146 pidfile => 'tfiles/pid',
165 pidfile => 'tfiles/pid',
184 pidfile => 'tfiles/pid',
265 pidfile => "tfiles/pid",
[all …]
/dports/net/udpbroadcastrelay/udpbroadcastrelay-0.3-beta/usage-notes/OPNsense-config/
H A Dudpbroadcastrelay.sh21 pidfile="/var/run/udpbroadcastrelay_$2.pid"
50 err 1 "Cannot stop udpbroadcastrelay with pid from $pidfile"
52 rm -f $pidfile
66 if [ -z "$pidfile" ]; then
77 pidfile=""
94 pidfile="/var/run/udpbroadcastrelay_$instance.pid"
103 pidfile="/var/run/udpbroadcastrelay_$i.pid"
117 pidfile="/var/run/udpbroadcastrelay_$i.pid"
132 pidfile="/var/run/udpbroadcastrelay_$i.pid"
146 pidfile="/var/run/udpbroadcastrelay_$i.pid"
[all …]
/dports/mail/assp/assp-1.9.9.14158/ASSP_1.9.9_14158_install/ASSP/rc/
H A Dassp.bsd40 pidfile="${base}/pid"
49 if [ -f ${pidfile} ]; then # is the PID found
51 rm ${pidfile}
52 echo "removed orphaned PID file ${pidfile}"
69 if [ ! -f ${pidfile} ];then # PID file not available
77 pkill -INT -F ${pidfile} # send INT to assp
81 while [ -f ${pidfile} -a ${timeout} -gt 0 ]; do
85 if [ -f ${pidfile} ];then # assp is still running - kill it
87 pkill -KILL -F ${pidfile}
89 rm ${pidfile}
[all …]
/dports/dns/unbound/unbound-1.14.0/contrib/
H A Dvalidation-reporter.sh12 pidfile="/var/run/validation-reporter.pid"
29 trap "rm -f \"$pidfile\"" EXIT
42 echo $! > "$pidfile"
47 if test -s "$pidfile"; then
48 kill `cat "$pidfile"`
50 if kill -0 `cat "$pidfile"` >/dev/null 2>&1; then
53 kill `cat "$pidfile"` >/dev/null 2>&1
62 if test -s "$pidfile"; then
63 if kill -0 `cat "$pidfile"`; then
77 echo "reporter ("`cat "$pidfile"`") is running"
[all …]
/dports/sysutils/pxp-agent/pxp-agent-1.15.16/ext/suse/
H A Dpxp-agent.init40 pidfile="${piddir}/${prog}.pid"
72 if [ -f "${pidfile}" ]; then
73 PID=$(cat "$pidfile")
102 if [ -f "${pidfile}" ]; then
103 PID=$(cat "$pidfile")
117 killproc -QUIT -p "${pidfile}" "${exec}" && rm -f "${lockfile}" "${pidfile}"
154 killproc -HUP -p "${pidfile}" "${exec}"
163 killproc -HUP -p "${pidfile}" "${exec}"
187 if [ -f "${pidfile}" ]; then
188 PID=$(cat "$pidfile")
[all …]
/dports/devel/p5-File-Tail-Scribe/File-Tail-Scribe-0.13/bin/
H A Dtail_to_scribe.pl116 check_pid($args{pidfile}) if $args{pidfile};
127 write_pid($args{pidfile}) if $args{pidfile};
130 cleanup_pid($args{pidfile});
170 cleanup_pid($args{pidfile});
175 my $pidfile = shift;
184 my $pidfile = shift;
185 open my $fh, '>', $pidfile or die "Failed to open $pidfile for writing: $!";
191 my $pidfile = shift;
202 my $pidfile = shift;
203 if ($pidfile && (my $pid = read_pid($pidfile)) ) {
[all …]
/dports/net/frr7-pythontools/frr-frr-7.5.1/tools/
H A Dfrr.in45 pidfile()
140 --pidfile=`pidfile $dmn` \
154 --pidfile=`pidfile $dmn-$inst` \
167 --pidfile=`pidfile $dmn` \
174 --pidfile=`pidfile $dmn` \
191 --pidfile=`pidfile staticd` \
231 rm -f `pidfile $inst`
377 ${SSD} --stop --quiet --oknodo --pidfile "$pidfile"
379 rm -rf "$pidfile"
448 ${SSD} --stop --quiet --oknodo --pidfile "$pidfile"
[all …]
/dports/net/frr7/frr-frr-7.5.1/tools/
H A Dfrr.in45 pidfile()
140 --pidfile=`pidfile $dmn` \
154 --pidfile=`pidfile $dmn-$inst` \
167 --pidfile=`pidfile $dmn` \
174 --pidfile=`pidfile $dmn` \
191 --pidfile=`pidfile staticd` \
231 rm -f `pidfile $inst`
377 ${SSD} --stop --quiet --oknodo --pidfile "$pidfile"
379 rm -rf "$pidfile"
448 ${SSD} --stop --quiet --oknodo --pidfile "$pidfile"
[all …]
/dports/games/pvpgn/pvpgn-1.8.5/src/d2dbs/
H A Dmain.c119 if (pidfile[0]=='\0') { in write_to_pidfile()
120 xfree((void *)pidfile); /* avoid warning */ in write_to_pidfile()
124 if (pidfile) { in write_to_pidfile()
128 if (!(fp = fopen(pidfile,"w"))) { in write_to_pidfile()
130 xfree((void *)pidfile); /* avoid warning */ in write_to_pidfile()
140 xfree((void *)pidfile); /* avoid warning */ in write_to_pidfile()
145 return pidfile; in write_to_pidfile()
235 char * pidfile; in server_main() local
243 pidfile = write_to_pidfile(); in server_main()
256 if (pidfile) { in server_main()
[all …]
/dports/net-mgmt/torrus/torrus-2.09/bin/
H A Dlauncher.in154 foreach my $pidfile (@{$pidfiles})
162 $lostpid{$pidfile} = 1;
176 if( not $lostpid{$pidfile} )
178 if( -e $pidfile )
267 foreach my $pidfile (@{$pidfiles})
269 my $pid = read_pidfile($pidfile);
270 my $pname = pidname($pidfile);
274 $lostpid{$pidfile} = $pid;
368 my $pidfile = shift;
370 my $pname = $pidfile;
[all …]
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/common/
H A Ddaemonize.c103 read_pidfile(const char *pidfile, int *pidfd) in read_pidfile() argument
110 if ((fd = open(pidfile, O_RDONLY)) < 0) in read_pidfile()
120 error ("Possible corrupt pidfile `%s'", pidfile); in read_pidfile()
147 create_pidfile(const char *pidfile, uid_t uid) in create_pidfile() argument
152 xassert(pidfile != NULL); in create_pidfile()
153 xassert(pidfile[0] == '/'); in create_pidfile()
158 error("Unable to open pidfile `%s': %m", pidfile); in create_pidfile()
169 error ("Unable to lock pidfile `%s': %m", pidfile); in create_pidfile()
174 error("Unable to write to pidfile `%s': %m", pidfile); in create_pidfile()
189 if (unlink(pidfile) < 0) in create_pidfile()
[all …]
/dports/net/parpd/parpd-1.3/
H A Dmain.c48 if((NULL == global.pidfile && NULL != conf.pidfile) || in reload_config()
50 (NULL == conf.pidfile || in reload_config()
51 0 != strcmp(global.pidfile, conf.pidfile)))) { in reload_config()
53 global.pidfile, conf.pidfile); in reload_config()
104 FILE * pidfile; in check_pidfile() local
107 if(NULL == (pidfile = fopen(global.pidfile, "r"))) { in check_pidfile()
114 fclose(pidfile); in check_pidfile()
120 FILE * pidfile; in daemonize() local
145 if(NULL == (pidfile = fopen(global.pidfile, "w"))) { in daemonize()
151 fclose(pidfile); in daemonize()
[all …]

12345678910>>...149