Oopps ... looks that I missed that one! Thanks!

-- Harald

Tjeerd Makel wrote:
> Hi Harald,
> 
> I think you can use the "XMAIL_PID_DIR" environment variable? It is
> mentioned in the online XMail manual, it works for me on FreeBSD...
> 
> Greets,
> 
> Tjeerd Makel
> 
> 
> On 5/27/2007, "Harald Schneider" <[EMAIL PROTECTED]> 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=3D/server/MailRoot
>>> export MAIL_ROOT
>>> name=3D"xmail"
>>> rcvar=3D`set_rcvar`
>>>
>>> command=3D${MAIL_ROOT}/bin/XMail
>>> command_args=3D"-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=3D"/var/run/XMail.pid"
>>> sig_stop=3D-kill $pidfile
>>>
>>> # read configuration and set defaults
>>> load_rc_config "$name"
>>> : ${xmail_enable=3D"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]
>>>
>>>
>> --
>>
>>
>> ____________________________________________________________________________=
> ___
>> Harald Schneider
>> Softwareentwicklung + Mediadesign
>> Kreuzweg 17 - 66663 Merzig - Germany
>> USt-Ident DE163098498
>>
>> Tel: 49 6861 792145  Fax: 49 6861 792146
>> Skype: hschneider66 ( skype:hschneider66?add )
>> -
>> 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]
> 
> 

-- 


_______________________________________________________________________________

Harald Schneider
Softwareentwicklung + Mediadesign
Kreuzweg 17 - 66663 Merzig - Germany
USt-Ident DE163098498

Tel: 49 6861 792145  Fax: 49 6861 792146
Skype: hschneider66 ( skype:hschneider66?add )
-
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]

Reply via email to