From patchwork Tue Nov 14 07:47:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: QI Fuli X-Patchwork-Id: 10057093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B856B602A7 for ; Tue, 14 Nov 2017 07:47:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97AF228FC8 for ; Tue, 14 Nov 2017 07:47:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C23E28FE7; Tue, 14 Nov 2017 07:47:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 23D2028FC8 for ; Tue, 14 Nov 2017 07:47:21 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D5952220757F5; Mon, 13 Nov 2017 23:43:13 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=211.128.242.40; helo=mgwym01.jp.fujitsu.com; envelope-from=qi.fuli@jp.fujitsu.com; receiver=linux-nvdimm@lists.01.org Received: from mgwym01.jp.fujitsu.com (mgwym01.jp.fujitsu.com [211.128.242.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B1C4A2035A7DF for ; Mon, 13 Nov 2017 23:43:11 -0800 (PST) Received: from yt-mxoi2.gw.nic.fujitsu.com (unknown [192.168.229.69]) by mgwym01.jp.fujitsu.com with smtp id 0d8b_2dc7_e0570822_dcd5_4511_a86a_0afc23f2167b; Tue, 14 Nov 2017 16:47:13 +0900 Received: from m3051.s.css.fujitsu.com (m3051.s.css.fujitsu.com [10.134.21.209]) by yt-mxoi2.gw.nic.fujitsu.com (Postfix) with ESMTP id AC19BAC00A2 for ; Tue, 14 Nov 2017 16:47:13 +0900 (JST) Received: from qi-fedora.fujitsu.com (unknown [10.124.196.110]) by m3051.s.css.fujitsu.com (Postfix) with ESMTP id 8EDA7283; Tue, 14 Nov 2017 16:47:13 +0900 (JST) From: QI Fuli To: linux-nvdimm@lists.01.org Subject: [RFC PATCH v2 6/7] ndctl: nvdimmd: add the unit file of systemd for nvdimmd service Date: Tue, 14 Nov 2017 16:47:03 +0900 Message-Id: <20171114074704.3446-7-qi.fuli@jp.fujitsu.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171114074704.3446-1-qi.fuli@jp.fujitsu.com> References: <20171114074704.3446-1-qi.fuli@jp.fujitsu.com> X-TM-AS-MML: disable X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP This patch adds and autotools to install the unit file of systemd for nvdimmd service. Signed-off-by: QI Fuli --- nvdimmd/Makefile.am | 7 +++++++ nvdimmd/nvdimmd.service | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 nvdimmd/nvdimmd.service diff --git a/nvdimmd/Makefile.am b/nvdimmd/Makefile.am index 6716547..bca0bc8 100644 --- a/nvdimmd/Makefile.am +++ b/nvdimmd/Makefile.am @@ -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) diff --git a/nvdimmd/nvdimmd.service b/nvdimmd/nvdimmd.service new file mode 100644 index 0000000..0b96aaa --- /dev/null +++ b/nvdimmd/nvdimmd.service @@ -0,0 +1,7 @@ +[Unit] +Description=Nvdimm Daemon + +[Service] +Type=forking +ExecStart=/usr/bin/nvdimmd +ExecStop=/usr/bin/kill ${MAINPID}