Saturday, October 13, 2007

rc.local in Debian

Non Debian users are probably surprised when they see this message: /etc/rc.d/rc.local: No such file or directory . It happened to me and I was very disoriented.
But don't worry, here is a quick fix for this:

With your favorite text editor create the file /etc/rc.d/rc.local and add something like:

#!/bin/bash
# Add all the scripts to run after system startup
/usr/local/apache/bin/apachectl start

then chmod +x /etc/rc.d/rc.local

then update-rc.d -f rc.local start 99 2 3 4 5

Now you should have it working as on other distros.

No comments: