• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Systemctl enable won't work on tftp & dnsmasq

    Scheduled Pinned Locked Moved Unsolved
    Linux Problems
    systemctl on boot
    2
    2
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Artur
      last edited by

      Server
      • FOG Version: 1.3.4 SVN revision 6066
      • OS: CentOS Linux release 7.3.1611 (Core)
      Client
      • Service Version: N/A
      • OS: N/A
      Description

      I restarted fog today to discover a hidden problem. tftp & dnsmasq didn’t turn on by default. After running

      systemctl enable tftp
      systemctl enable dnsmasq
      

      both command said that they create the syslink.

      TFTP: /etc/systemd/system/sockets.target.wants/tftp.socket to /usr/lib/systemd/system/tftp.socket.
      dnsmasq: /etc/systemd/system/multi-user.target.wants/dnsmasq.service to /usr/lib/systemd/system/dnsmasq.service.

      Rebooted the system, and after checking the status they were still off.

      I ran

      systemctl is-enabled tftp
      systemctl is-enabled dnsmasq
      

      both return a value of “indirect” After some googling I found that it means,

      “The unit file itself is not enabled, but it has a non-empty Also= setting in the “[Install]” unit file section, listing other unit files that might be enabled”

      so I tried disable to clear it. The syslink was removed but when I checked, it still returned “indirect”

      Right now I just have a script running

      systemctl start tftp
      systemctl start dnsmasq
      

      on bootup, but I hate technical debt and unsolved mysteries. Anyone either, A know why, or B how to fix it, cleanly? preferably both but I’ll settle for B alone.

      Thanks in advance for any help anyone can provide.

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Artur
        last edited by Tom Elliott

        @Artur I may be wrong, but I believe these use the rpcbind system. Is this set to enabled?

        Typically, on redhat, there are services that are indirectly running. Meaning when a request comes in the service “hears” it and hands out whatever is needed. So a systemctl -l status tftp dnsmasq will likely be a more accurate thing to be displayed here. I’m going to guess that the ‘inderect’ portion is just a means to tell rpcbind to open the ‘listeners’.

        Was there a problem doing or anything or just something you noticed?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        126

        Online

        12.1k

        Users

        17.3k

        Topics

        155.4k

        Posts
        Copyright © 2012-2024 FOG Project