Skip to content

Commit

Permalink
automatically use systemd service class if opensuse >= 12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Jan 5, 2012
1 parent cb56d01 commit 23d3206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -7,6 +7,7 @@
* user: set crypted passwords
* added OpenSuSE 12.1 compatibility
* fixed redhat versiond detection
* automatically use systemd service class if opensuse >= 12.1

2011-10-28 Jan Gehring <jan.gehring, gmail.com> (0.21.1)
* fix for #8 - HOME environment variable on Windows
Expand Down
3 changes: 3 additions & 0 deletions lib/Rex/Service.pm
Expand Up @@ -29,6 +29,9 @@ sub get {
$class = "Rex::Service::Redhat::systemd";
}

if(is_suse() && operating_system_version() >= 121) {
$class = "Rex::Service::SuSE::systemd";
}

my $provider_for = Rex::Config->get("service_provider") || {};
my $provider;
Expand Down

0 comments on commit 23d3206

Please sign in to comment.