selecting some kind of files using the resync command

Ed Greshko ed.greshko at greshko.com
Sat Oct 25 12:48:51 UTC 2014


On 10/25/14 20:04, Angelo Moreschini wrote:
> thank you Ed,
>
> --------
> /The |/etc/rc.d/rc.local| local customization script is no longer included by default. Administrators who need this functionality merely have to create this file, make it executable, and it will run on boot. /
> ---------
>
> I create my |/etc/rc.d/rc.local|
> and I made it executable:
> [angelo_dev at zorro ~]$ ls /etc/rc.d/rc.local -l
> -rwxr-xr-x. 1 root root 1159 Oct 24 15:07 /etc/rc.d/rc.local
>
>
> But that doesn't work...
> l am not sure what can be the cause that it doesn't work... Only I can think about the owner of
> the file (who have to be the owner of this _local_ File ?...
>
> What I can try ?
>
>

The contents of your file are probably failing.... 

To prove that rc.local is being executed at boot, put *only* the following in the file.

#!/bin/sh
/usr/bin/touch /var/tmp/hello

And reboot.

One common reason for a failure is to not use full path names to executables.

-- 
If you can't laugh at yourself, others will gladly oblige.


More information about the users mailing list