OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • [CLOSED] Restart dnsmasq from the CLI
« previous next »
  • Print
Pages: [1]

Author Topic: [CLOSED] Restart dnsmasq from the CLI  (Read 3812 times)

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
[CLOSED] Restart dnsmasq from the CLI
« on: January 21, 2018, 06:04:51 pm »
How do I restart dnsmasq from the CLI?

I've tried:
Code: [Select]
% service dnsmasq restart
Cannot 'restart' dnsmasq. Set dnsmasq_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.
Given the fact that it is already running I presume a different mechanism is active for starting the daemon, so I dare not follow this instruction.


Code: [Select]
% configctl dnsmasq restart
Action not found
Was worth a try. But no joy.
« Last Edit: January 22, 2018, 06:46:08 pm by mausy5043 »
Logged
:-D  Hobbyist programmer since 1986

Alphabet Soup

  • Newbie
  • *
  • Posts: 47
  • Karma: 7
    • View Profile
Re: Restart dnsmasq from the CLI
« Reply #1 on: January 22, 2018, 01:30:59 am »
'restart' only works if, as it says, dnsmasq_enable="YES" appears in the /etc/rc.conf file.  If it doesn't, you must acknowledge/override this with 'onerestart' instead:

Code: [Select]
% service dnsmasq onerestart
This is not particular to dnsmasq.  It applies to most packages.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13608
  • Karma: 1170
    • View Profile
Re: Restart dnsmasq from the CLI
« Reply #2 on: January 22, 2018, 07:05:19 am »
Although we make a point to use the RC system like it is supposed to be used for newer services, older things like Dnsmasq and Unbound are integrated radically different.

Long story short, to restart the DNS subsystem run:

# pluginctl dns

Please don't override rc.conf for anything that has a GUI.


Cheers,
Franco
Logged

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Restart dnsmasq from the CLI
« Reply #3 on: January 22, 2018, 06:45:52 pm »
Quote from: franco on January 22, 2018, 07:05:19 am
Although we make a point to use the RC system like it is supposed to be used for newer services, older things like Dnsmasq and Unbound are integrated radically different.

Long story short, to restart the DNS subsystem run:

# pluginctl dns

Please don't override rc.conf for anything that has a GUI.


Cheers,
Franco

I asked because something like that was the case here. Thanks!
Logged
:-D  Hobbyist programmer since 1986

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13608
  • Karma: 1170
    • View Profile
Re: [CLOSED] Restart dnsmasq from the CLI
« Reply #4 on: January 22, 2018, 06:50:55 pm »
Happy to help. :)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • [CLOSED] Restart dnsmasq from the CLI
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2