You are not logged in.

#1 2007-10-22 10:31:44

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Start mysql when starting amarok

I would like to only start mysql when amarok starts instead of it running as a deamon.
How would I go about this?
I was thinking a script or alias but need some help writing one as mysql needs to be started as root, and amarok as my user. So far I have come up w/

sudo /etc/rc.d/mysqld start | amarok

but amarok starts before I can enter password for sudo and my databased is not loaded.
Also is there a way to stop mysqld when amarok shuts down?

Offline

#2 2007-10-22 10:49:53

Noneus
Member
From: Munich
Registered: 2006-09-26
Posts: 118
Website

Re: Start mysql when starting amarok

sudo /etc/rc.d/mysqld start && amarok

Offline

#3 2007-10-22 19:00:42

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Start mysql when starting amarok

thanks, I knew I was close:-)
Now if I can olny stop after amarok shuts down.

Last edited by somairotevoli (2007-10-22 19:01:16)

Offline

Board footer

Powered by FluxBB