NAME

WebService::OPNsense::Dnsmasq::Service - Dnsmasq service controller

VERSION

version 0.002

SYNOPSIS

my $service = $opn->dnsmasq_service;

$service->status;
$service->restart;
$service->reconfigure;

DESCRIPTION

Controls the Dnsmasq service.

METHODS

status

my $status = $service->status;

Returns service status.

start

my $result = $service->start;

Starts the Dnsmasq service.

stop

my $result = $service->stop;

Stops the Dnsmasq service.

restart

my $result = $service->restart;

Restarts the Dnsmasq service.

reconfigure

my $result = $service->reconfigure;

Reconfigures the Dnsmasq service.

client

my $http_client = $service->client;

Returns the underlying HTTP client object used for API requests.

SEE ALSO

WebService::OPNsense::Role::Service

AUTHOR

Dean Hamstead <dean@fragfest.com.au>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Dean Hamstead.

This is free software, licensed under:

The MIT (X11) License