Start script

Steven Stern subscribed-lists at sterndata.com
Mon Feb 20 19:35:41 UTC 2012


On 02/20/2012 01:29 PM, Fedora Linux wrote:
> Hello friends
> 
> I have a doubt about how to make a start script to launche services and
> do some stuff every time that fedora boots...
> 
> I created a script
> 
> 
> /etc/rc.d/init.d/MyStartupScript rwxr-xr-x
> 
> rm -fr /tmp/*
> rm -fr /tmp/.*
> mysqld_safe --user=mysql &
> 
> but it simply does nothing... I have Fedora 16... how and where should I
> put my script?
> 
> Thanks
> 
> 
> 
You want to put the contents into /etc/rc.d/rc.local


But to start MySQL, let the system start it automatically by adding it
to the list of services

   sudo systemctl enable mysqld.service


-- 
-- Steve


More information about the users mailing list