Home
last modified time | relevance | path

Searched refs:pidfilename (Results 1 – 25 of 67) sorted by relevance

123

/dports/net-mgmt/resource-agents/resource-agents-4.9.0/tools/
H A Dsend_arp.libnet.c144 char *pidfilename = NULL; local
203 if (!pidfilename) {
221 unlink(pidfilename);
242 unlink(pidfilename);
250 unlink(pidfilename);
261 unlink(pidfilename);
281 unlink(pidfilename);
286 unlink(pidfilename);
291 unlink(pidfilename);
302 unlink(pidfilename);
[all …]
/dports/security/tinc-devel/tinc-1.1pre18/src/
H A Dnames.c35 char *pidfilename = NULL; variable
102 if(!pidfilename) { in make_names()
103 xasprintf(&pidfilename, "%s" SLASH "pid", confbase); in make_names()
131 if(!pidfilename) { in make_names()
139 if(!pidfilename) { in make_names()
144 xasprintf(&pidfilename, "%s" SLASH "pid", confbase); in make_names()
151 int len = strlen(pidfilename); in make_names()
153 memcpy(unixsocketname, pidfilename, len); in make_names()
155 if(len > 4 && !strcmp(pidfilename + len - 4, ".pid")) { in make_names()
167 free(pidfilename); in free_names()
[all …]
H A Dcontrol.c151 FILE *f = fopen(pidfilename, "w"); in init_control()
155 …logger(DEBUG_ALWAYS, LOG_ERR, "Cannot write control socket cookie file %s: %s", pidfilename, strer… in init_control()
240 unlink(pidfilename); in exit_control()
/dports/devel/ptlib/ptlib-2.10.11/src/ptlib/unix/
H A Dsvcproc.cxx205 PString pidfilename; in InitialiseService() local
207 pidfilename = args.GetOptionString('p'); in InitialiseService()
210 pidfilename = _PATH_VARRUN; in InitialiseService()
213 if (!pidfilename && PDirectory::Exists(pidfilename)) in InitialiseService()
214 pidfilename = PDirectory(pidfilename) + PProcess::Current().GetFile().GetFileName() + ".pid"; in InitialiseService()
251 PFile::Remove(pidfilename); in InitialiseService()
259 PFile::Remove(pidfilename); in InitialiseService()
386 if (!pidfilename) { in InitialiseService()
387 ifstream pidfile((const char*)pidfilename); in InitialiseService()
413 if (!pidfilename) { in InitialiseService()
[all …]
/dports/www/py-scgi/scgi-2.2/scgi/
H A Dquixote_handler.py14 pidfilename = None # set by main() variable
97 global pidfilename
99 os.unlink(pidfilename)
115 global pidfilename
116 pidfilename = "/var/tmp/quixote-scgi.pid"
132 pidfilename = v
157 pidfile = open(pidfilename, 'w')
168 os.unlink(pidfilename)
/dports/www/mod_scgi/scgi-2.0/scgi/
H A Dquixote_handler.py14 pidfilename = None # set by main() variable
97 global pidfilename
99 os.unlink(pidfilename)
115 global pidfilename
116 pidfilename = "/var/tmp/quixote-scgi.pid"
132 pidfilename = v
157 pidfile = open(pidfilename, 'w')
168 os.unlink(pidfilename)
/dports/mail/perdition/perdition-2.2/perdition/
H A Dperdition.c1259 pidfilename_cpy = strdup(pidfilename); in create_pid_directory()
1326 "[%s]: %s", pidfilename, in write_pid_file()
1338 "[%s]: %s", pidfilename, in write_pid_file()
1351 "[%s]: %s", pidfilename, in write_pid_file()
1364 "[%s]: %s", pidfilename, in write_pid_file()
1372 "[%s]: %s", pidfilename, in write_pid_file()
1380 pidfilename); in write_pid_file()
1398 if(unlink(pidfilename) < 0) { in write_pid_file()
1405 pidfilename); in write_pid_file()
1432 "[%s]: %s", pidfilename, in write_pid_file()
[all …]
/dports/net/siproxd/siproxd-0.8.2/src/
H A Dsiproxd.c146 char *pidfilename=NULL; local
220 pidfilename = optarg;
302 if (pidfilename == NULL) pidfilename = configuration.pid_file;
308 if (pidfilename) createpidfile(pidfilename);
316 if (pidfilename) createpidfile(pidfilename);
660 if (pidfilename) {
661 DEBUGC(DBCLASS_CONFIG,"deleting PID file [%s]", pidfilename);
662 sts=unlink(pidfilename);
/dports/devel/libPropList/libPropList-0.10.1/
H A Ddaemon.c84 char *pidfilename; in initialize() local
91 pidfilename = ManglePath(PIDFILE); in initialize()
93 if(stat(pidfilename, &file_stat) < 0) { in initialize()
102 if(stat(pidfilename, &file_stat) < 0) in initialize()
109 if(stat(pidfilename, &file_stat) == 0) /* success */ in initialize()
120 pidfile = fopen(pidfilename, "r"); in initialize()
139 free(pidfilename); in initialize()
/dports/ftp/omi/omi/
H A Domi.c997 cc->pidfilename = NULL; in create_lockfile()
1004 free (cc->pidfilename); in create_lockfile()
1005 cc->pidfilename = NULL; in create_lockfile()
1013 free (cc->pidfilename); in create_lockfile()
1014 cc->pidfilename = NULL; in create_lockfile()
1021 free (cc->pidfilename); in create_lockfile()
1022 cc->pidfilename = NULL; in create_lockfile()
1033 if (!cc->pidfilename) in remove_lockfile()
1037 free (cc->pidfilename); in remove_lockfile()
1038 cc->pidfilename = NULL; in remove_lockfile()
[all …]
/dports/sysutils/spiped/spiped-1.6.2/spiped/
H A Dmain.c93 char * pidfilename = NULL; in main() local
248 if (asprintf(&pidfilename, (opt_p != NULL) ? "%s" : "%s.pid", in main()
267 if (daemonize(pidfilename)) { in main()
318 if (daemonize(pidfilename)) { in main()
371 free(pidfilename); in main()
388 free(pidfilename); in main()
/dports/net-mgmt/torrus/torrus-2.09/bin/
H A Dmonitor.in99 my $pidfilename =
102 if( -r $pidfilename )
105 my $fh = IO::File->new($pidfilename, 'r');
122 $pidfile = $pidfilename;
H A Dcollector.in117 my $pidfilename =
121 if( -r $pidfilename )
124 my $fh = IO::File->new($pidfilename, 'r');
141 $pidfile = $pidfilename;
/dports/security/tinc/tinc-1.0.36/src/
H A Dprocess.c42 extern char *pidfilename;
250 pid = check_pid(pidfilename); in write_pidfile()
264 if(!write_pid(pidfilename)) { in write_pidfile()
265 fprintf(stderr, "Couldn't write pid file %s: %s\n", pidfilename, strerror(errno)); in write_pidfile()
280 pid = read_pid(pidfilename); in kill_other()
305 remove_pid(pidfilename); in kill_other()
344 if(!write_pid(pidfilename)) { in detach()
345 fprintf(stderr, "Could not write pid file %s: %s\n", pidfilename, strerror(errno)); in detach()
549 remove_pid(pidfilename); in fatal_signal_handler()
H A Dtincd.c104 char *pidfilename = NULL; /* pid file location */ variable
339 if(pidfilename) { in parse_options()
345 pidfilename = xstrdup(optarg); in parse_options()
546 if(!pidfilename) { in make_names()
547 xasprintf(&pidfilename, RUNSTATEDIR "/%s.pid", identname); in make_names()
570 free(pidfilename); in free_names()
812 remove_pid(pidfilename); in main2()
/dports/net/netpipes/netpipes-4.2/
H A Dfaucet.c293 char *pidfilename=0; /* we'll write our PID in decimal local
405 pidfilename = argv[++i];
536 if (pidfilename!=0) {
537 pidfp = fopen(pidfilename, "w");
540 progname, pidfilename, strerror(errno));
695 if (pidfilename != 0) {
698 progname, pidfilename);
699 unlink(pidfilename); /* if it fails, we just don't care */
/dports/dns/ddns/ddns-1.0/
H A Dclient.c287 char *user = 0, *root = 0, *filename = 0, *pidfilename = 0; in main() local
306 pidfilename = optarg; in main()
329 if (pidfilename && pidfile(pidfilename) < 0) in main()
344 if (pidfilename) unlink(pidfilename); in main()
H A Dserver.c527 char *user = 0, *root = 0, *pidfilename = 0; in main() local
550 pidfilename = optarg; in main()
572 if (pidfilename && pidfile(pidfilename) < 0) in main()
615 if (pidfilename) unlink(pidfilename); in main()
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/common/
H A Ddaemonize.h53 extern int create_pidfile(const char *pidfilename, uid_t uid);
61 extern pid_t read_pidfile(const char *pidfilename, int *pidfilefd);
/dports/irc/atheme-services/atheme-7.2.9/libathemecore/
H A Datheme.c260 const char *pidfilename = RUNDIR "/atheme.pid"; in atheme_main() local
295 pidfilename = mowgli_optarg; in atheme_main()
331 if ((pid_file = fopen(pidfilename, "r"))) in atheme_main()
390 if ((pid_file = fopen(pidfilename, "w"))) in atheme_main()
444 remove(pidfilename); in atheme_main()
/dports/sysutils/py-salt/salt-3004.1/tests/unit/modules/inspectlib/
H A Dtest_collector.py46 inspector = Inspector(cachedir=cachedir, piddir=piddir, pidfilename="bar.pid")
63 cachedir=os.sep + "test", piddir=os.sep + "test", pidfilename="bar.pid"
110 inspector = Inspector(cachedir="/test", piddir="/test", pidfilename="bar.pid")
147 inspector = Inspector(cachedir="/test", piddir="/test", pidfilename="bar.pid")
/dports/sysutils/py-salt/salt-3004.1/salt/modules/inspectlib/
H A D__init__.py33 def __init__(self, cachedir=None, piddir=None, pidfilename=None): argument
50 piddir or self.DEFAULT_PID_PATH, pidfilename or self.PID_FILE
/dports/mail/spfmilter/spfmilter-2.001/
H A Dspfmilter.c277 char* pidfilename; in main() local
294 pidfilename = (char*) 0; in main()
348 pidfilename = optarg; in main()
387 init_pidfile( pidfilename ); in main()
400 term_pidfile( pidfilename ); in main()
714 init_pidfile( const char* pidfilename ) in init_pidfile() argument
716 if ( pidfilename != (char*) 0 ) in init_pidfile()
720 fp = fopen( pidfilename, "w" ); in init_pidfile()
733 term_pidfile( const char* pidfilename ) in term_pidfile() argument
735 if ( pidfilename != (char*) 0 ) in term_pidfile()
[all …]
/dports/mail/py-fuglu/fuglu-0.8.0/src/fuglu/
H A Ddaemon.py28 def __init__(self, pidfilename): argument
29 self.pidfile = pidfilename
/dports/print/p910nd/p910nd-0.97/
H A Dp910nd.c527 char pidfilename[sizeof(PIDFILE)]; in server() local
561 (void)snprintf(pidfilename, sizeof(pidfilename), PIDFILE, lpnumber); in server()
562 if ((f = fopen(pidfilename, "w")) == NULL) { in server()
563 dolog(LOGOPTS, "%s: %m\n", pidfilename); in server()

123