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
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to