ppisar pushed to quota (f21). "Add rpc-rquotad.service file"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 2 12:25:20 UTC 2015


>From 7dc35b1385ea0006eb66007c331cc6db143b4789 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Thu, 2 Apr 2015 11:02:58 +0200
Subject: Add rpc-rquotad.service file


diff --git a/quota.spec b/quota.spec
index 5cb7a09..4bfb69d 100644
--- a/quota.spec
+++ b/quota.spec
@@ -5,7 +5,7 @@ Name: quota
 Summary: System administration tools for monitoring users' disk usage
 Epoch: 1
 Version: 4.01
-Release: 14%{?dist}
+Release: 15%{?dist}
 # quota_nld.c, quotaio_xfs.h:       GPLv2
 # bylabel.c copied from util-linux: GPLv2+
 # svc_socket.c copied from glibc:   LGPLv2+
@@ -16,6 +16,9 @@ URL: http://sourceforge.net/projects/linuxquota/
 Group: System Environment/Base
 Requires: tcp_wrappers
 Requires: quota-nls = %{epoch}:%{version}-%{release}
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
 Conflicts: kernel < 2.4
 BuildRequires: e2fsprogs-devel gettext tcp_wrappers-devel
 BuildRequires: openldap-devel dbus-devel libnl-devel
@@ -23,6 +26,8 @@ BuildRequires: systemd
 Source0: http://downloads.sourceforge.net/linuxquota/%{name}-%{version}.tar.gz
 Source1: quota_nld.service
 Source2: quota_nld.sysconfig
+Source3: rpc-rquotad.service
+Source4: rpc-rquotad.sysconfig
 # Not accepted changes (378a64006bb1e818e84a1c77808563b802b028fa)
 # Some of the lines have been superseded by other commits probably.
 Patch0: quota-4.01-warnquota.patch
@@ -205,10 +210,23 @@ ln -s  quotaon.8.gz \
 install -p -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/quota_nld.service
 install -p -m644 -D %{SOURCE2} \
     $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/quota_nld
+install -p -m644 -D %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/rpc-rquotad.service
+install -p -m644 -D %{SOURCE4} \
+    $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rpc-rquotad
 
 %find_lang %{name}
 
 
+%post
+%systemd_post rpc-rquotad.service
+
+%preun
+%systemd_preun rpc-rquotad.service
+
+%postun
+%systemd_postun_with_restart rpc-rquotad.service
+
+
 %post nld
 %systemd_post quota_nld.service
 
@@ -220,6 +238,8 @@ install -p -m644 -D %{SOURCE2} \
 
 
 %files
+%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/rpc-rquotad
+%{_unitdir}/rpc-rquotad.service
 %attr(0755,root,root) %{_bindir}/*
 %attr(0755,root,root) %{_sbindir}/*
 %exclude %{_sbindir}/quota_nld
@@ -259,6 +279,10 @@ install -p -m644 -D %{SOURCE2} \
 
 
 %changelog
+* Thu Apr 02 2015 Petr Pisar <ppisar at redhat.com> - 1:4.01-15
+- Add rpc-rquotad.service file which was known as nfs-rquotad.service
+  in nfs-utils (bug #1206260)
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:4.01-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
diff --git a/rpc-rquotad.service b/rpc-rquotad.service
new file mode 100644
index 0000000..3ec4134
--- /dev/null
+++ b/rpc-rquotad.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Remote quota server
+Documentation=man:rpc.rquotad(8)
+Requires=rpcbind.target
+After=rpcbind.target
+
+[Service]
+Type=forking
+EnvironmentFile=-/etc/sysconfig/rpc-rquotad
+ExecStart=/usr/sbin/rpc.rquotad $RPCRQUOTADOPTS
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rpc-rquotad.sysconfig b/rpc-rquotad.sysconfig
new file mode 100644
index 0000000..4c67c13
--- /dev/null
+++ b/rpc-rquotad.sysconfig
@@ -0,0 +1,8 @@
+# Optionas to pass to rpc.rquotad daemon. See rpc.rquotad(8) manual page for
+# more details.
+# -I, --autofs          Ignore autofs mount points
+# -p port, --port port  Listen on alternative port
+# -s, --no-setquota     Don't allow setting quotas with RPC (default)
+# -S, --setquota        Allow setting quotas with RPC
+# -x path, --xtab path  Use alternative NFSD export table
+RPCRQUOTADOPTS=""
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/quota.git/commit/?h=f21&id=7dc35b1385ea0006eb66007c331cc6db143b4789


More information about the scm-commits mailing list