Skip to content

Commit

Permalink
Update calls to Yast2::Systemd::(Service|Socket)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Aug 16, 2018
1 parent c8445e6 commit daa2b4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/TftpServer.rb
Expand Up @@ -10,6 +10,8 @@
# Representation of the configuration of TftpServer.
# Input and output routines.
require "yast"
require "yast2/systemd/service"
require "yast2/systemd/socket"

require "shellwords"

Expand All @@ -32,8 +34,6 @@ def main
Yast.import "Package"
Yast.import "Progress"
Yast.import "Report"
Yast.import "SystemdSocket"
Yast.import "SystemdService"
Yast.import "Summary"

# Any settings modified?
Expand Down Expand Up @@ -68,7 +68,7 @@ def firewall

# systemd socket for tftp
def socket
@socket ||= SystemdSocket.find!(SOCKET_NAME)
@socket ||= Yast2::Systemd::Socket.find!(SOCKET_NAME)
end

# Returns true if the settings were modified
Expand Down Expand Up @@ -181,7 +181,7 @@ def Write

# in.tftpd will linger around for 15 minutes waiting for a new connection
# so we must kill it otherwise it will be using the old parameters
SystemdService.find!("tftp").stop
Yast2::Systemd::Service.find!("tftp").stop

# TODO only when we have our own Progress
#boolean progress_orig = Progress::set (false);
Expand Down

0 comments on commit daa2b4a

Please sign in to comment.