Home Page › Forums › Network Management › ZeroShell › rc.local doesn`t execute anything › Reply To: rc.local doesn`t execute anything
April 2, 2009 at 6:45 am
#47932
Member
Is the execution bit for these scripts set?
You should get something like that:
root@zeroshell root> ls -la /etc/rc.d/
total 23
drwxr-xr-x 11 root root 1024 Mar 1 2004 .
drwxr-xr-x 23 root root 2048 Mar 27 15:10 ..
drwxr-xr-x 2 root root 1024 Oct 10 00:23 init.d
drwxr-xr-x 2 root root 1024 Aug 20 2007 rc0.d
drwxr-xr-x 2 root root 1024 Apr 17 2006 rc1.d
drwxr-xr-x 2 root root 1024 Apr 17 2006 rc2.d
drwxr-xr-x 2 root root 1024 Oct 4 14:56 rc3.d
drwxr-xr-x 2 root root 1024 Apr 17 2006 rc4.d
drwxr-xr-x 2 root root 1024 Apr 17 2006 rc5.d
drwxr-xr-x 2 root root 1024 Aug 20 2007 rc6.d
drwxr-xr-x 2 root root 1024 Oct 11 15:26 rcsysinit.d
If you don’t have the ‘x’ in the first ‘rwx’ for the file you created then you need to enable it with the command
chmod +x /path/to/file