diff options
author | Simo Sorce <simo@redhat.com> | 2013-03-22 09:05:06 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-03-22 11:34:42 -0400 |
commit | 1955a2d57d6d6ff3d4aa6dcdbc890d9c44417f7f (patch) | |
tree | 87a56d0ebb1e1e733a20528541fb8937ef31ccf3 /proxy/conf_macros.m4 | |
parent | e9623f5f05053f215c71dbf37d034ae98f1f1c36 (diff) | |
download | gss-proxy-1955a2d57d6d6ff3d4aa6dcdbc890d9c44417f7f.tar.gz gss-proxy-1955a2d57d6d6ff3d4aa6dcdbc890d9c44417f7f.tar.xz gss-proxy-1955a2d57d6d6ff3d4aa6dcdbc890d9c44417f7f.zip |
Write pid file at startup.
Diffstat (limited to 'proxy/conf_macros.m4')
-rw-r--r-- | proxy/conf_macros.m4 | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/proxy/conf_macros.m4 b/proxy/conf_macros.m4 index 27b89ed..f2d3755 100644 --- a/proxy/conf_macros.m4 +++ b/proxy/conf_macros.m4 @@ -9,23 +9,6 @@ AC_DEFUN([WITH_DISTRO_VERSION], [Distro version number]) ]) -AC_DEFUN([WITH_PID_PATH], - [ AC_ARG_WITH([pid-path], - [AC_HELP_STRING([--with-pid-path=PATH], - [Where to store pid files for gssproxy [/var/run]] - ) - ] - ) - config_pidpath="\"VARDIR\"/run" - pidpath="${localstatedir}/run" - if test x"$with_pid_path" != x; then - config_pidpath=$with_pid_path - pidpath=$with_pid_path - fi - AC_SUBST(pidpath) - AC_DEFINE_UNQUOTED(PID_PATH, "$config_pidpath", [Where to store pid files for gssproxy]) - ]) - AC_DEFUN([WITH_LOG_PATH], [ AC_ARG_WITH([log-path], [AC_HELP_STRING([--with-log-path=PATH], @@ -77,6 +60,23 @@ AC_DEFUN([WITH_SOCKET_NAME], AC_DEFINE_UNQUOTED(GP_SOCKET_NAME, "$gp_socket_name", [The name of the GSS Proxy socket file]) ]) +AC_DEFUN([WITH_PID_FILE], + [ AC_ARG_WITH([pid-file], + [AC_HELP_STRING([--with-id-file=PATH], + [Name of the GSS Proxy pid file [/var/run/gssproxy.pid]] + ) + ] + ) + gp_pid_file="\"VARDIR\"/run/gssproxy.pid" + pidfile="${localstatedir}/run/gssproxy.pid" + if test x"$with_pid_file" != x; then + gp_pid_file=$with_pid_file + pidfile=$with_pid_file + fi + AC_SUBST(pidfile) + AC_DEFINE_UNQUOTED(GP_PID_FILE, "$gp_pid_file", [The name of the GSS Proxy pid file]) + ]) + AC_DEFUN([WITH_INITSCRIPT], [ AC_ARG_WITH([initscript], [AC_HELP_STRING([--with-initscript=INITSCRIPT_TYPE], |