A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=1023 
====================================================================== 
Reported By:                creditlink
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   1023
Category:                   installation scripts
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             06-Sep-13 19:44 CEST
Last Modified:              08-Sep-13 10:51 CEST
====================================================================== 
Summary:                    systemd scripts build
Description: 
The dbmail.conf file allows (rightfully) us to set the pid directory but
the systemd makefile has the pid directory hard coded.
====================================================================== 

---------------------------------------------------------------------- 
 (0003569) creditlink (reporter) - 06-Sep-13 20:24
 http://www.dbmail.org/mantis/view.php?id=1023#c3569 
---------------------------------------------------------------------- 
And when running the uninstall-local target of the systemd Makefile, it
makes an attempt to rm /usr/lib/systemd/system 

---------------------------------------------------------------------- 
 (0003570) sergej (reporter) - 07-Sep-13 14:11
 http://www.dbmail.org/mantis/view.php?id=1023#c3570 
---------------------------------------------------------------------- 
You can change pidfile directory using

make install PID_DIR=/var/run/dbmail 

---------------------------------------------------------------------- 
 (0003571) paul (administrator) - 07-Sep-13 14:29
 http://www.dbmail.org/mantis/view.php?id=1023#c3571 
---------------------------------------------------------------------- 
since systemd files have their own configuration, they cannot be expected
to check dbmail.conf, but:

the systemd code should follow the autoconf style used in the rest of the
code, so defaults generated by configure, and explicit directory parameters
passed to configure must be respected:

so PID files go into the directory specified by

--localstatedir

which means, after taking a quick look - not tested - that references to
PID_DIR in systemd/Makefile.am should be replaced by localstatedir, just
like already done for sbindir 

---------------------------------------------------------------------- 
 (0003572) sergej (reporter) - 07-Sep-13 15:01
 http://www.dbmail.org/mantis/view.php?id=1023#c3572 
---------------------------------------------------------------------- 
localstatedir will work until distributions support symlink /var/run ->
/run. 

---------------------------------------------------------------------- 
 (0003573) paul (administrator) - 07-Sep-13 19:47
 http://www.dbmail.org/mantis/view.php?id=1023#c3573 
---------------------------------------------------------------------- 
I'm sorry, but I don't understand. What do you mean? Why would a symlink be
required for localstatedir? 

---------------------------------------------------------------------- 
 (0003574) sergej (reporter) - 08-Sep-13 10:38
 http://www.dbmail.org/mantis/view.php?id=1023#c3574 
---------------------------------------------------------------------- 
Distibutions move /var/run to /run, however localstatedir usualy points to
/var. So we cannot specify /run/dbmail using localstatedir variable as I
understand. 

---------------------------------------------------------------------- 
 (0003575) paul (administrator) - 08-Sep-13 10:51
 http://www.dbmail.org/mantis/view.php?id=1023#c3575 
---------------------------------------------------------------------- 
They mount /run as a tmpfs. That is perfectly valid. And so is using
/run/dbmail as localstatedir.

It is up to the init scripts to make sure that any subdirectory below the
run tmpfs is created in time.

So you can point localstatedir to anything you like. It's a configure
option which defaults to PREFIX/var where PREFIX defaults to /usr/local.

For the debian packages I override these by explicitely using:
--prefix=/usr
--sysconfdir=/etc/dbmail
--localstatedir=/var/run/dbmail

and by making sure the init-script creates the needed localstatedir
directory if it doesn't exist. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
06-Sep-13 19:44  creditlink     New Issue                                    
06-Sep-13 20:24  creditlink     Note Added: 0003569                          
07-Sep-13 14:11  sergej         Note Added: 0003570                          
07-Sep-13 14:29  paul           Note Added: 0003571                          
07-Sep-13 15:01  sergej         Note Added: 0003572                          
07-Sep-13 19:47  paul           Note Added: 0003573                          
08-Sep-13 10:38  sergej         Note Added: 0003574                          
08-Sep-13 10:51  paul           Note Added: 0003575                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to