@@ -18,6 +18,12 @@ nvdimmd_LDADD = ../ndctl/lib/libndctl.la \
$(UUID_LIBS) \
$(UDEV_LIBS)
+unitfiles = nvdimmd.service
+
+unitdir = /usr/lib/systemd/system/
+
+unit_DATA = $(unitfiles)
+
conffiles = nvdimmd.conf
confdir = /etc/nvdimmd/
@@ -25,4 +31,5 @@ confdir = /etc/nvdimmd/
conf_DATA = $(conffiles)
EXTRA_DIST =\
+ $(unitfiles) \
$(conffiles)
new file mode 100644
@@ -0,0 +1,7 @@
+[Unit]
+Description=Nvdimm Daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/nvdimmd
+ExecStop=/usr/bin/kill ${MAINPID}
This patch adds and autotools to install the unit file of systemd for nvdimmd service. Signed-off-by: QI Fuli <qi.fuli@jp.fujitsu.com> --- nvdimmd/Makefile.am | 7 +++++++ nvdimmd/nvdimmd.service | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 nvdimmd/nvdimmd.service