ports icon indicating copy to clipboard operation
ports copied to clipboard

fix: Set static pidfile directory

Open kumy opened this issue 1 year ago • 3 comments

Relates to opnsense/plugins#4260

  • patch the ports Makefile to add custom include
  • patch the rc script to set a custom static pidfile directory

kumy avatar Nov 11 '24 11:11 kumy

Let me think about this. I'm not sure FreeBSD ports will accept this as is.

fichtner avatar Nov 11 '24 15:11 fichtner

Hi @fichtner any news? :pray:

kumy avatar Mar 27 '25 06:03 kumy

Sorry for dropping this. It's all just not very nice

% git grep client/logs
Makefile:       ${MKDIR} ${STAGEDIR}${WWWDIR}/client/logs
files/xymon-client.in:pidfile="%%WWWDIR%%/client/logs/clientlaunch.`hostname`.pid"
files/xymon-client.in:command_args="--config=%%WWWDIR%%/client/etc/clientlaunch.cfg --log=%%WWWDIR%%/client/logs/clientlaunch.log --pidfile=${pidfile}"
files/xymon-client.in:  chown -R ${xymon_client_user} %%WWWDIR%%/client/logs
pkg-plist:@dir %%WWWDIR%%/client/logs

So apart from the PID file it also wants to push logs into WWWDIR. Would it work if we set WWWDIR=${ETCDIR} and change XYMONTOPDIR to ${PREFIX}/etc/xymon/client ?

Cheers, Franco

fichtner avatar Mar 27 '25 12:03 fichtner