Hi Harald -
It's all about the startup script on *BSD. There is no standard package
for Xmail (something I have thought about setting up numerous times) in
FreeBSD, so modifying a "default" template is not an issue. I place my
custom startup script in /usr/local/etc/rc.d - I believe this is at
least somewhat similar in the other *BSDs. It specifiers the location
of the .pid file - here is the script I use, pidfile being declared
explicitly:
#!/bin/sh
#
# $FreeBSD: XMail - non-standard port
#
# PROVIDE: xmail
#
# Add the fellowing line to /etc/rc.conf.local or /etc/rc.conf
# to enable xmail
#
# xmail_enable (bool): Set it to "YES" to enable
.. /etc/rc.subr
MAIL_ROOT=/server/MailRoot
export MAIL_ROOT
name="xmail"
rcvar=`set_rcvar`
command=${MAIL_ROOT}/bin/XMail
command_args="-B- -W- -X- -F- -Ms /server/MailRoot -MM -Qr 50 -Ql -Pl
-Sl -SI 127.0.0.1:25 -Ll -Mr 240 -Sr 300"
pidfile="/var/run/XMail.pid"
sig_stop=-kill $pidfile
# read configuration and set defaults
load_rc_config "$name"
: ${xmail_enable="NO"}
run_rc_command "$1"
I hope that helps!
Jeff
Harald Schneider wrote:
> Hi,
>
> is there a way to relocate the XMail.pid file from /var/run to another
> location ?
>
> This would allow to use XMail as e.g. a proxy with user rights only,
> startable from a simple script - all files in a single folder.
>
> -- Harald
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>
>
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]