masqmail

diff configure.ac @ 421:f37384470855

Changed lockdir to /var/lock/masqmail; Create lockdir and piddir on startup. Moved the lockdir out of the spool dir. (When /var/lock is a ramdisk we do well to have the lock files there.) Added the new configure option --with-lockdir to change that location. Nontheless, if we run_as_user, then lock files are always stored in the spool dir directly. Instead of installing the lockdir and piddir at installation time, we create them on startup time now if they are missing. This is necessary if lockdir or piddir are a tmpfs.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 09:38:38 +0200
parents d209b4846f2b
children bdbedce60247
line diff
     1.1 --- a/configure.ac	Tue May 29 22:15:55 2012 +0200
     1.2 +++ b/configure.ac	Wed May 30 09:38:38 2012 +0200
     1.3 @@ -197,6 +197,15 @@
     1.4  AC_DEFINE_UNQUOTED(PID_DIR, "${with_piddir}", [The pid file location])
     1.5  AC_SUBST(with_piddir)
     1.6  
     1.7 +dnl dir for lock files
     1.8 +AC_ARG_WITH(lockdir,
     1.9 +	[  --with-lockdir=DIR      directory for lock files [/var/lock/masqmail]],
    1.10 +	,
    1.11 +	with_lockdir='/var/lock/masqmail'
    1.12 +	)
    1.13 +AC_DEFINE_UNQUOTED(LOCK_DIR, "${with_lockdir}", [The lock file location])
    1.14 +AC_SUBST(with_lockdir)
    1.15 +
    1.16  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
    1.17  
    1.18  dnl well, /me/ thought that autoconf should make things _easy_ ... -- oku