/var/log/ircd.log contains an infinite number of these:
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/kline.db.new
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/dline.db.new
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/xline.db.new
[2018-05-29T11:28:02+0900] Cannot create temporary database file /var/lib/resv.db.new
This is caused by the Makefile containing: --localstatedir=/var
and the resulting configure being:
$ ./configure --disable-assert --disable-halfops --enable-openssl=/usr --sysconfdir=/usr/local/etc/ircd-hybrid --datarootdir=/usr/local/share/ircd-hybrid-8.2.22 --localstatedir=/var --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/info/ --build=amd64-portbld-freebsd11.1
These 4 files are not configured in the config file for reasons unknown, but handed over on the command line:
I think the solution is to modify the start up script to deal with this, but I am puzzled why a port in /usr/local is doing anything in /var, let along /var/lib ...
I do not know the official freebsd way to fix this ^^;
Well, that's silly. I'll look at it. Should be very simple fix.
ok looking at this further, I think the best way to handle this is to place the hybrid state files under var/hybrid/ with the ownership changed to match that of the hybrid owner. kline.conf would then be in /usr/local/var/hybrid/kline.conf
That seems to have stopped the errors.
See Comment3. Can we close here?
(In reply to w.schwarzenfeld from comment #4)
Assuming the patch was put in the release, yes.