From 91bec5401693e3bb230904f73eb47b1d02c584de Mon Sep 17 00:00:00 2001 From: Timothy Allen Date: Fri, 1 Jul 2016 14:07:58 +1000 Subject: [PATCH] nix.spec.in: RHEL 7/CentOS 7 supports systemd. --- nix.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix.spec.in b/nix.spec.in index e94bcff8d..61da404a3 100644 --- a/nix.spec.in +++ b/nix.spec.in @@ -159,7 +159,7 @@ done %post chgrp %{nixbld_group} /nix/store -%if ! 0%{?rhel} +%if ! 0%{?rhel} || 0%{?rhel} >= 7 # Enable and start Nix worker systemctl enable nix-daemon.socket nix-daemon.service systemctl start nix-daemon.socket @@ -171,7 +171,7 @@ systemctl start nix-daemon.socket %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto/ %{_prefix}/libexec/* -%if ! 0%{?rhel} +%if ! 0%{?rhel} || 0%{?rhel} >= 7 %{_prefix}/lib/systemd/system/nix-daemon.socket %{_prefix}/lib/systemd/system/nix-daemon.service %endif