On Nov 2, 2003, at 7:56 AM, Matt Alexander wrote: > Chris Gehlker said: >> How come Red Hat has two versions of rc.local, one in /etc and >> another >> in /etc/rc.d? > > /etc/rc.local is a symlink to /etc/rc.d/rc.local Doh > >> How come I can't get either one to work? > > Need more info. Here is what I have: > #!/bin/sh > # > # This script will be executed *after* all the other init scripts. > # You can put your own initialization stuff in here if you don't > # want to do the full Sys V style init stuff. > > > echo "This rc.local script is running" > > if [ -x /usr/local/samba/sbin/smbd]; then > echo "Starting smbd..." > /usr/local/samba/sbin/smbd -D > echo "Starting nmbd..." > /usr/local/samba/sbin/nmbd -D > fi > > touch /var/lock/subsys/local I added everything but the comments and the last line. So when I restart I would expect to at least see the comment. But when I do dmesg | grep rc.local the result is an empty line.