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