Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command line parms to init services

Status
Not open for further replies.

InnSun

Programmer
Aug 10, 2002
31
0
0
US
Please help with somewhat of a newbie question:

I want to change the way a service starts on boot: to run with a particular command line parm. Is this the normal procedure (speaking generally)??:

(emacs or vi) /etc/init.d/<yourservice>d
----> look for the execute line in the script
----> add the --parm

Specifically, I want to add the --ansi command line parm to mysqld. I tried changing /etc/init.d/mysqld, in the place where it runs the service -
(actually it runs /usr/bin/safe_mysqld) -
by inserting --ansi preceding the already existing command line parms.

Then # service mysqld stop
# service mysqld start (get an [ok])

There is a problem, though. Before I post to the MySql forum I want to confirm I did all the *nix specific stuff correctly. (The problem is that the /var/lib/mysql/mysql.sock file doesn't get created. Restoring the service script to it's original state and restarting fixes this)

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top