Hi Harald -
You are right - I just tested it and had assumed that "pidfile=" set the
location. It's seems strange that it would be hard coded in any application
rather than parameterized. It sounds like the variable mentioned by Tjeerd
might be the way to go.
Jeff
Harald Schneider wrote: Hi Jeff, as far as I can see this just assigns the
standard path to the .pid to a variable which is used for the Kill command.
It does not SET the -pid file's location - right ? IMHO it needs to be
modified in the source. Any hints Davide ? -- Harald Jeff Buehler wrote: 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
configurationand 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 -
Tounsubscribe 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]
--- Links ---
1 mailto:[EMAIL PROTECTED]
2 mailto:[EMAIL PROTECTED]
3 mailto:[EMAIL PROTECTED]
4 mailto:[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]