]> git.proxmox.com Git - pve-network.git/commit
dns: dnsmasq: extract function to systemctl command.
authorStefan Lendl <s.lendl@proxmox.com>
Fri, 5 Apr 2024 13:17:59 +0000 (15:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Apr 2024 15:57:18 +0000 (17:57 +0200)
commitcac88dfa471ab514f36ae72d51c5db2ae5de2d55
treecb2e7ed20ebd44fb4a5415adda8a1dca6859c446
parent2f37fddc0ebcb039df3703ff4a251d33f05e9f2e
dns: dnsmasq: extract function to systemctl command.

systemctl_service() is a wrapper around PVE::Tools::run_command to allow
mocking the systemctl interactions in tests.

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>
src/PVE/Network/SDN/Dhcp/Dnsmasq.pm