From ac6adbf0c58a345d3c8c5651de4436e305c7426a Mon Sep 17 00:00:00 2001 From: Tom Goff Date: Tue, 15 Dec 2015 20:57:12 +0000 Subject: [PATCH] scripts: Update the core-daemon systemd service configuration. --- configure.ac | 1 + scripts/.gitignore | 1 + scripts/Makefile.am | 2 +- scripts/{core-daemon.service => core-daemon.service.in} | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) rename scripts/{core-daemon.service => core-daemon.service.in} (77%) diff --git a/configure.ac b/configure.ac index cca08ef9..56648d90 100644 --- a/configure.ac +++ b/configure.ac @@ -326,6 +326,7 @@ AC_CONFIG_FILES([Makefile gui/Makefile gui/icons/Makefile scripts/Makefile + scripts/core-daemon.service scripts/perf/Makefile scripts/xen/Makefile doc/Makefile diff --git a/scripts/.gitignore b/scripts/.gitignore index 8869397c..86129f95 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore @@ -1 +1,2 @@ core-daemon +core-daemon.service diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 6dd33fcb..95622585 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -12,7 +12,7 @@ CLEANFILES = core-daemon DISTCLEANFILES = Makefile.in xen/Makefile xen/Makefile.in EXTRA_DIST = core-daemon-init.d \ - core-daemon.service \ + core-daemon.service.in \ core-daemon-rc.d \ core-daemon-init.d-SUSE \ xen diff --git a/scripts/core-daemon.service b/scripts/core-daemon.service.in similarity index 77% rename from scripts/core-daemon.service rename to scripts/core-daemon.service.in index edb8a2cb..657c160f 100644 --- a/scripts/core-daemon.service +++ b/scripts/core-daemon.service.in @@ -5,7 +5,7 @@ After=network.target [Service] Type=forking PIDFile=/var/run/core-daemon.pid -ExecStart=/usr/bin/python /usr/sbin/core-daemon -d +ExecStart=@PYTHON@ @SBINDIR@/core-daemon -d [Install] WantedBy=multi-user.target