forked from lix-project/lix
nix.spec.in: RHEL 7/CentOS 7 supports systemd.
This commit is contained in:
parent
3a535abbc7
commit
91bec54016
|
@ -159,7 +159,7 @@ done
|
||||||
|
|
||||||
%post
|
%post
|
||||||
chgrp %{nixbld_group} /nix/store
|
chgrp %{nixbld_group} /nix/store
|
||||||
%if ! 0%{?rhel}
|
%if ! 0%{?rhel} || 0%{?rhel} >= 7
|
||||||
# Enable and start Nix worker
|
# Enable and start Nix worker
|
||||||
systemctl enable nix-daemon.socket nix-daemon.service
|
systemctl enable nix-daemon.socket nix-daemon.service
|
||||||
systemctl start nix-daemon.socket
|
systemctl start nix-daemon.socket
|
||||||
|
@ -171,7 +171,7 @@ systemctl start nix-daemon.socket
|
||||||
%{perl_vendorarch}/*
|
%{perl_vendorarch}/*
|
||||||
%exclude %dir %{perl_vendorarch}/auto/
|
%exclude %dir %{perl_vendorarch}/auto/
|
||||||
%{_prefix}/libexec/*
|
%{_prefix}/libexec/*
|
||||||
%if ! 0%{?rhel}
|
%if ! 0%{?rhel} || 0%{?rhel} >= 7
|
||||||
%{_prefix}/lib/systemd/system/nix-daemon.socket
|
%{_prefix}/lib/systemd/system/nix-daemon.socket
|
||||||
%{_prefix}/lib/systemd/system/nix-daemon.service
|
%{_prefix}/lib/systemd/system/nix-daemon.service
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in a new issue