Skip to content

Commit

Permalink
prefer "/lib/systemd/system" path over "/usr/lib/systemd/system"
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@15947 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 24, 2017
1 parent 26b183c commit a68d10f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rpmbuild/xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/mime/packages/application-x-xpraconfig.xml

%files common-server
%{_prefix}/lib/systemd/system/xpra.service
%{_prefix}/lib/systemd/system/xpra.socket
/lib/systemd/system/xpra.service
/lib/systemd/system/xpra.socket
%{_prefix}/lib/cups/backend/xpraforwarder
%config(noreplace) %{_sysconfdir}/sysconfig/xpra
%config %{_prefix}/lib/tmpfiles.d/xpra.conf
Expand Down
4 changes: 2 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,15 +1549,15 @@ def copytodir(src, dst_dir, chmod=0o644):
if service_ENABLED:
#Linux init service:
if os.path.exists("/bin/systemctl"):
copytodir("service/xpra.service", "lib/systemd/system")
copytodir("service/xpra.service", "/lib/systemd/system")
else:
copytodir("service/xpra", "/etc/init.d")
if os.path.exists("/etc/sysconfig"):
copytodir("etc/sysconfig/xpra", "/etc/sysconfig")
elif os.path.exists("/etc/default"):
copytodir("etc/sysconfig/xpra", "/etc/default")
if sd_listen_ENABLED:
copytodir("service/xpra.socket", "lib/systemd/system")
copytodir("service/xpra.socket", "/lib/systemd/system")


# add build_conf to build step
Expand Down

0 comments on commit a68d10f

Please sign in to comment.