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

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

 



Le 03/09/2016 22:59, François Patte a écrit :
> Bonsoir,
> 
> I try to enable rc-local service:
> 
> 1- I created /etc/rc.d/rc.local file:
> 
> #!/bin/bash
> 
> iptables -I INPUT -p udp --sport 1900 -j ACCEPT
> 
> 2- I chmoded  /etc/rc.d/rc.local
> 
> chmod u+x /etc/rc.d/rc.local
> 
> But the service won't start:
> 
> # systemctl status rc-local.service
> ● rc-local.service - /etc/rc.d/rc.local Compatibility
>    Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static;
> vendor preset: disabled)
>    Active: failed (Result: exit-code) since sam. 2016-09-03 22:49:00
> CEST; 25s ago
>   Process: 8189 ExecStart=/etc/rc.d/rc.local start (code=exited,
> status=203/EXEC)
> 
> sept. 03 22:49:00 berrichon systemd[1]: Starting /etc/rc.d/rc.local
> Compatibility...
> sept. 03 22:49:00 berrichon systemd[1]: rc-local.service: Control
> process exited, code=exited ...203
> sept. 03 22:49:00 berrichon systemd[1]: Failed to start
> /etc/rc.d/rc.local Compatibility.
> sept. 03 22:49:00 berrichon systemd[1]: rc-local.service: Unit entered
> failed state.
> sept. 03 22:49:00 berrichon systemd[1]: rc-local.service: Failed with
> result 'exit-code'.
> Hint: Some lines were ellipsized, use -l to show in full.
> 
> 
> 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.

-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte

Attachment: signature.asc
Description: OpenPGP digital signature

--
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