Re: unable to start rc-local.service[SOLVED]

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

 



On Sun, Sep 04, 2016 at 10:34:20PM +0200, François Patte wrote:
> Le 03/09/2016 22:59, François Patte a écrit :
> > 
> > On other nstall of fedora 23 this works.... Why not on this computer?
> 
> Just  unwanted spaces before and after  #!/bin/bash
> 
> The script works when executed for itself, but it seems that systemd is
> quite supercilious about that spaces and very avaricious to give some
> hints about the error encountered!
> 
> Thank you for helping.

The '#!' notation has meaning ONLY if it is the first two characters
of the file.  Otherwise it is just a shell comment.

>From the command line you are probably running bash.
Thus the script gets executed by the shell you want.
But during boot it may be executed by a different shell
and that shell may not deal with some constructs the
same as bash.

Jon
-- 
Jon H. LaBadie                  jonfu@xxxxxxxxxx
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
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