From patchwork Wed Nov 9 10:47:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 124521 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "acsinet15.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 7197F1007D8 for ; Wed, 9 Nov 2011 21:47:45 +1100 (EST) Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pA9AlebG031007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 9 Nov 2011 10:47:41 GMT Received: from oss.oracle.com (oss.oracle.com [141.146.12.120]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pA9AldFv026668 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Nov 2011 10:47:40 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RO5gs-0005Pn-7s; Wed, 09 Nov 2011 02:47:34 -0800 Received: from acsinet13.oracle.com ([141.146.126.235]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RO5gq-0005Pd-65 for fedfs-utils-devel@oss.oracle.com; Wed, 09 Nov 2011 02:47:32 -0800 Received: from mail-vw0-f43.google.com (mail-vw0-f43.google.com [209.85.212.43]) by acsinet13.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pA9AlTLG027912 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Wed, 9 Nov 2011 10:47:31 GMT Received: by vws13 with SMTP id 13so1596610vws.2 for ; Wed, 09 Nov 2011 02:47:29 -0800 (PST) Received: by 10.52.37.36 with SMTP id v4mr3507244vdj.61.1320835649609; Wed, 09 Nov 2011 02:47:29 -0800 (PST) Received: from salusa.poochiereds.net (cpe-075-177-182-191.nc.res.rr.com. [75.177.182.191]) by mx.google.com with ESMTPS id id7sm6743076vdb.21.2011.11.09.02.47.27 (version=SSLv3 cipher=OTHER); Wed, 09 Nov 2011 02:47:28 -0800 (PST) From: Jeff Layton To: chuck.lever@oracle.com Date: Wed, 9 Nov 2011 05:47:24 -0500 Message-Id: <1320835644-21264-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.6.4 X-Flow-Control-Info: class=ISPs ip=209.85.212.43 ct-class=R6 ct-vol1=0 ct-vol2=0 ct-vol3=0 ct-risk=68 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=3766 Cc: fedfs-utils-devel@oss.oracle.com Subject: [fedfs-utils] [PATCH] contrib: add a systemd service file for rpc.fedfsd (try #2) X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090209.4EBA5A4D.008E:SCFSTAT3865452, ss=1, re=-4.000, fgs=0 ...this version also makes it source in /etc/sysconfig/fedfs before starting the daemon so that the user can set $RPCFEDFSDARGS. Signed-off-by: Jeff Layton --- configure.ac | 1 + contrib/Makefile.am | 2 +- contrib/systemd/Makefile.am | 29 +++++++++++++++++++++++++++++ contrib/systemd/rpcfedfsd.service | 29 +++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 1 deletions(-) create mode 100644 contrib/systemd/Makefile.am create mode 100644 contrib/systemd/rpcfedfsd.service diff --git a/configure.ac b/configure.ac index b26a4a7..9a93e81 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,7 @@ AC_SUBST([root_sbindir]) AC_CONFIG_FILES([Makefile contrib/Makefile contrib/init-scripts/Makefile + contrib/systemd/Makefile doc/Makefile doc/ldap/Makefile doc/man/Makefile diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 7d68051..9ce39e9 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -23,7 +23,7 @@ ## http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt ## -SUBDIRS = init-scripts +SUBDIRS = init-scripts systemd CLEANFILES = cscope.in.out cscope.out cscope.po.out *~ DISTCLEANFILES = Makefile.in diff --git a/contrib/systemd/Makefile.am b/contrib/systemd/Makefile.am new file mode 100644 index 0000000..217edda --- /dev/null +++ b/contrib/systemd/Makefile.am @@ -0,0 +1,29 @@ +## +## @file contrib/systemd/Makefile.am +## @brief Process this file with automake to produce contrib/systemd/Makefile.in +## + +## +## Copyright 2011 Red Hat. All rights reserved. +## +## This file is part of fedfs-utils. +## +## fedfs-utils is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License version 2.0 as +## published by the Free Software Foundation. +## +## fedfs-utils is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License version 2.0 for more details. +## +## You should have received a copy of the GNU General Public License +## version 2.0 along with fedfs-utils. If not, see: +## +## http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt +## + +EXTRA_DIST = rpcfedfsd.service + +CLEANFILES = cscope.in.out cscope.out cscope.po.out *~ +DISTCLEANFILES = Makefile.in diff --git a/contrib/systemd/rpcfedfsd.service b/contrib/systemd/rpcfedfsd.service new file mode 100644 index 0000000..f41e013 --- /dev/null +++ b/contrib/systemd/rpcfedfsd.service @@ -0,0 +1,29 @@ +## +## Copyright 2011 Red Hat. All rights reserved. +## +## rpcfedfsd.service is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License version 2.0 as +## published by the Free Software Foundation. +## +## rpcfedfsd.service is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License version 2.0 for more details. +## +## A copy of the GNU General Public License version 2.0 is +## available here: +## +## http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt +## + +[Unit] +Description=FedFS administrative service daemon +After=syslog.target + +[Service] +EnvironmentFile=-/etc/sysconfig/fedfs +ExecStart=/usr/sbin/rpc.fedfsd $RPCFEDFSDARGS +Type=forking + +[Install] +WantedBy=multi-user.target