Start of control socket implementation.
This commit is contained in:
parent
6ded8a3f08
commit
01f47c46af
6 changed files with 499 additions and 12 deletions
|
|
@ -78,6 +78,7 @@ bool use_logfile = false;
|
|||
|
||||
char *identname = NULL; /* program name for syslog */
|
||||
char *pidfilename = NULL; /* pid file location */
|
||||
char *controlfilename = NULL; /* pid file location */
|
||||
char *logfilename = NULL; /* log file location */
|
||||
char **g_argv; /* a copy of the cmdline arguments */
|
||||
|
||||
|
|
@ -378,6 +379,8 @@ static void make_names(void)
|
|||
if(!pidfilename)
|
||||
asprintf(&pidfilename, LOCALSTATEDIR "/run/%s.pid", identname);
|
||||
|
||||
asprintf(&controlfilename, LOCALSTATEDIR "/run/%s.control", identname);
|
||||
|
||||
if(!logfilename)
|
||||
asprintf(&logfilename, LOCALSTATEDIR "/log/%s.log", identname);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue