Re: rc.local not start at the boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/29/2014 09:06 PM, Angelo Moreschini issued this missive:
> Hi Ed,
> 
> I also thought that I setting controls the command in a different way
> could be the solution.
> But it did not was so.
> The question is now, however, morelimited: it is about understanding why
> a script that can be run from the command line, does not run inside the
> file /etc/rc.d/rc.local

Because the /etc/rc.d/rc.local script does not have your login
environment. The odds are that the path to one or more of your commands
is missing. If you want to prove this, modify your script to do
something like

	echo $PATH >/tmp/path.txt

and reboot. Compare the contents of /tmp/path.txt and "echo $PATH" at
the command line and I'll bet the paths are different.

This is incredibly common for startup scripts and crontab entries. If
you wish to avoid them, ensure you have a "PATH=" command in the top
of your script or specify the full path to each command inside the
script:

	/usr/bin/rsync........

NOT

	rsync.....

because "/usr/bin" may NOT be in the crontab or initscript's PATH.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-   After a shooting spree, they always want to take the guns away   -
-                from the people who didn't do it.                   -
-                                         -- William S.Burroughs     -
----------------------------------------------------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux