Setting an environment var at boot

Nikolaj Thygesen mailinglist at diamondbox.dk
Wed Sep 3 18:53:39 UTC 2008


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 must be
> exported and accessible for my services runned in /etc/rc.d
> and /usr/local/etc/rc.d
>
> What file do you advice?
>
> Thanks.
>
> Regards,
>
>   
Wouldn't this go into '/etc/login.conf'?

N :o)



More information about the freebsd-questions mailing list