• SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Restart MySQL on reboot?

thusnani

New Around Here
Everytime my router reboots, I need to restart MySQL by going into telnet and putting in the following command.

/opt/etc/init.d/S70mysqld restart

I'm sure (read it somewhere) there is a way for the router to run the command on startup. Can someone please help me out?

Thanks in advance.
 
Everytime my router reboots, I need to restart MySQL by going into telnet and putting in the following command.

/opt/etc/init.d/S70mysqld restart

I'm sure (read it somewhere) there is a way for the router to run the command on startup. Can someone please help me out?

Thanks in advance.

With Optware, services can be enabled by running this command:

Code:
app_set_enabled.sh mysql yes

No idea about Entware.

Another possibility is to put your command at the end of a services-start script - I can't remember however if it gets run before or after USB disks get mounted.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top