Koozali.org: home of the SME Server

Deamon variables at startup

Offline flo_turc

  • 2
  • +0/-0
Deamon variables at startup
« on: November 19, 2008, 06:37:01 PM »
Hello All,

I've tried to pass some argument to mysql with the method describe
http://wiki.contribs.org/DB_Variables_Configuration#MySQL_.28mysqld.29

the my.cnf is not modified and arg doesn't pass...

The argument are stored in /home/e-smith/db/configuration but doesn't pass at start up

I could create an template-custom file... But it seams that db is done to create this arg...
thank you, Flo_turc.

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Deamon variables at startup
« Reply #1 on: November 19, 2008, 09:16:55 PM »
Hello All,

I've tried to pass some argument to mysql

What arguments did you try to pass?  Show the output of:

config show mysqld
In life, you must either "Push, Pull or Get out of the way!"

Offline flo_turc

  • 2
  • +0/-0
Re: Deamon variables at startup
« Reply #2 on: November 19, 2008, 10:24:44 PM »
config show mysqld

mysqld=service
    LocalNetworkingOnly=yes
    key_buffer=16M
    record_buffer=1M
    sort_buffer=4M
    status=enabled
    table_cache=128

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Deamon variables at startup
« Reply #3 on: November 19, 2008, 11:39:56 PM »
config show mysqld

mysqld=service
    LocalNetworkingOnly=yes
    key_buffer=16M
    record_buffer=1M
    sort_buffer=4M

    status=enabled
    table_cache=128

The bolded options are not configurable via a DB command, the templates are not written for those options.  You will need to create a custom template to set those options.
In life, you must either "Push, Pull or Get out of the way!"

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Deamon variables at startup
« Reply #4 on: November 20, 2008, 12:50:59 AM »
Something like this:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/my.cnf
cd /etc/e-smith/templates-custom/etc/my.cnf
echo "key_buffer=16M
record_buffer=1M
sort_buffer=4M
table_cache=128" > 012custom_params
expand-template /etc/my.cnf
sv restart mysqld