Re: unable to start rc-local.service

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

 





On 09/04/2016 01:45 AM, François Patte wrote:
Le 03/09/2016 23:17, Mike Wright a écrit :
On 09/03/2016 01:59 PM, François Patte wrote:
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
Another useless systemd message.  This usually indicates an error in the
script contained in rc.local.  Try executing rc.local manually to see if
there are any errors.  If there are bash will provide much more useful
information.
Executing rc.local file "by hand" works without errors and moreover the
required command is fulfilled.... ie. in my case:

# iptables -L | grep ssdp
ACCEPT     udp  --  anywhere             anywhere             udp spt:ssdp

In the /usr/lib/systemd/system/rc-local.service I can read:
<quote>
# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.d/rc.local is executable.
</quote>

It is exactly what I have done: making /etc/rc.d/rc.local  executable
(and owned by root.root) and it does not work!

Is there somewhere a place where I can get some information about the
error?
"Active: failed (Result: exit-code) since sam. 2016-09-03 22:49:00" is a
very tiny explanation!

Thank You
Can you post it's contents? Please feel free to omit stuff you deem would expose something private.
--
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