I know the commands to restart/stop/start, but when I try to pass options it doesn't seem to work!CENTOS 6, MySQL 5.14service mysql restartservice httpd restartThen I tried this:/etc/init.d/mysql --general_log /my/log/path.logThat doesn't work either (the error message says it doesn't have access) =/Update: Apparently I can't run mysqld as root because of security issues
If I'm logged in as root, how do I restart mysql or apache with options?
command line;mysql;apache httpd;options
To change options permanently and in the sanctioned manner, edit the files in /etc/sysconfig that have the same name as the service.For example, consider httpd. On one system I have, there are several things you can set:# Processing modelHTTPD=/usr/sbin/httpd.worker# Additional optionsOPTIONS=# Set localeHTTPD_LANG=C(The actual file is much more verbose and explanatory than this.)There should be files in /etc/sysconfig for virtually every service.