about summary refs log tree commit diff
path: root/nix.spec.in
diff options
context:
space:
mode:
authorTimothy Allen <Timothy.Allen@optiver.com.au>2016-07-01T04·07+1000
committerTimothy Allen <Timothy.Allen@optiver.com.au>2016-07-01T04·09+1000
commit91bec5401693e3bb230904f73eb47b1d02c584de (patch)
treed0785dc860b3b2357545bf1e7efe74ba5d9cf2a7 /nix.spec.in
parent3a535abbc782ac43a031f9f917e66d17e3789b3a (diff)
nix.spec.in: RHEL 7/CentOS 7 supports systemd.
Diffstat (limited to 'nix.spec.in')
-rw-r--r--nix.spec.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/nix.spec.in b/nix.spec.in
index e94bcff8dddc..61da404a3844 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