Skip to content

Commit

Permalink
reloading named.service
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 30, 2018
1 parent 8d2c917 commit 5a24ec3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-dns-server.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 30 09:45:34 CEST 2018 - schubi@suse.de

- Reload named.service only if it is running, otherwise restart it.
(bnc#1093029)
- 4.0.2

-------------------------------------------------------------------
Thu Jan 25 15:26:18 UTC 2018 - knut.anderssen@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-dns-server.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-dns-server
Version: 4.0.1
Version: 4.0.2
Release: 0
Url: https://github.com/yast/yast-dns-server

Expand Down
16 changes: 14 additions & 2 deletions src/include/dns-server/dialog-main.rb
Expand Up @@ -1881,7 +1881,13 @@ def WriteDialog
Wizard.RestoreHelp(Ops.get_string(@HELPS, "write", ""))
ret = DnsServer.Write
if ret
service.reload if status_widget.reload_flag?
if status_widget.reload_flag?
if service.running?
service.restart
else
service.restart
end
end
:next
else
if Popup.YesNo(_("Saving the configuration failed. Change the settings?"))
Expand All @@ -1898,7 +1904,13 @@ def SaveAndRestart
Wizard.RestoreHelp(Ops.get_string(@HELPS, "write", ""))
ret = DnsServer.Write
if ret
service.reload if status_widget.reload_flag?
if status_widget.reload_flag?
if service.running?
service.reload
else
service.restart
end
end
else
Report.Error(_("Saving the configuration failed"))
end
Expand Down

0 comments on commit 5a24ec3

Please sign in to comment.