Martin Simmons wrote:
>>>>>> On Tue, 03 Mar 2009 12:24:36 -0500, Dan Langille said:
>> Folks:
>>
>> A patch has been proposed for the FreeBSD rc.d script. If you can test
>> this and let me know if it works for you:
>>
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/132286
>
> You may want to raise a new pr for this, but maybe the numbers 9101 etc should
> be set from @dir_port@ etc during configure like with
> scripts/bacula-ctl-dir.in etc in the Bacula source code?
That is a very good idea.
Looking at the code, I see examples within our src that hardcodes those
numbers:
platforms/suse/bacula.in: killproc @sbindir@/bacula-dir 9101
platforms/suse/bacula.in: status @sbindir@/bacula-dir 9101
platforms/gentoo/bacula-init.in: start-stop-daemon --stop --quiet
--pidfile /var/run/bacula-dir.9101.pid
On FreeBSD, if you're going to deviate from the defaults set in the rc.d
script, you can do this by setting values in /etc/rc.conf, like this:
bacula_sd_pidfile="/var/run/bacula-sd.29103.pid"
An entry such as the above tells the rc.d system what PID file to use.
The PID file used by the daemon is set during the configure stage of the
port (i.e. bacula).
Conclusion: no action required just now.
Agreed? It'd be nice to have, but I don't know how to do it. I'd
welcome patches from others though.
--
Dan Langille
BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon - The PostgreSQL Conference: http://www.pgcon.org/
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|