Skip to content

Commit

Permalink
fix: restart of dnsmasq.service if enabled in module update (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi authored Jun 28, 2024
1 parent 9e79ddf commit 6086469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageroot/update-module.d/10setup
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ mkdir -p dnsmasq.d dnsmasq_hosts.d
# Install systemd service
install -m 644 ../dnsmasq.service "/etc/systemd/system/${MODULE_ID}.service"
systemctl daemon-reload
# restart service only if it's already running
systemctl try-restart "${MODULE_ID}"
# Restart the service, if the module has been configured:
systemctl -q is-enabled "${MODULE_ID}" && systemctl restart -T "${MODULE_ID}"

0 comments on commit 6086469

Please sign in to comment.