Setting an environment var at boot

2008-09-03 Thread Nicolas Letellier
Hello, I have an env var to set for mysqld (UMASK_DIR). Today, I set it in /usr/local/etc/rc.d/mysql-server, but it's a bad idea. When I want to upgrade my mysql5-server port, the file will be overwritten. I want to set it in a file loaded a machine boot. This var must be exported and

Re: Setting an environment var at boot

2008-09-03 Thread Polytropon
On Wed, 3 Sep 2008 10:49:25 +0200, Nicolas Letellier [EMAIL PROTECTED] wrote: What file do you advice? Unclean, but maybe early enough in the boot process: /etc/rc.local. This file won't be touched at port's or system's update. Much more unclean, but certainly earlier: /etc/rc itself. Thile

Re: Setting an environment var at boot

2008-09-03 Thread RW
On Wed, 3 Sep 2008 11:28:14 +0200 Polytropon [EMAIL PROTECTED] wrote: On Wed, 3 Sep 2008 10:49:25 +0200, Nicolas Letellier [EMAIL PROTECTED] wrote: What file do you advice? Unclean, but maybe early enough in the boot process: /etc/rc.local. This file won't be touched at port's or system's

Re: Setting an environment var at boot

2008-09-03 Thread Nikolaj Thygesen
Nicolas Letellier wrote: Hello, I have an env var to set for mysqld (UMASK_DIR). Today, I set it in /usr/local/etc/rc.d/mysql-server, but it's a bad idea. When I want to upgrade my mysql5-server port, the file will be overwritten. I want to set it in a file loaded a machine boot. This var