2022-02-01 14:55:41

by Steve Dickson

[permalink] [raw]
Subject: [PATCH 3/5] systemd: rename service file.

The precedence has been set that most
systemd service files are named after
the daemon they start.

Signed-off-by: Steve Dickson <[email protected]>
---
buildrpm/1.3/fdr.spec | 10 +++++-----
fdrd.man | 2 +-
fdr.service => fdrd.service | 0
3 files changed, 6 insertions(+), 6 deletions(-)
rename fdr.service => fdrd.service (100%)

diff --git a/buildrpm/1.3/fdr.spec b/buildrpm/1.3/fdr.spec
index 3484659..226db33 100644
--- a/buildrpm/1.3/fdr.spec
+++ b/buildrpm/1.3/fdr.spec
@@ -34,23 +34,23 @@ mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 samples/nfs.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/nfs

mkdir -p %{buildroot}/%{_unitdir}
-install -m 644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service
+install -m 644 %{name}d.service %{buildroot}/%{_unitdir}/%{name}d.service

mkdir -p %{buildroot}/%{_mandir}/man8
install -m 644 fdrd.man %{buildroot}/%{_mandir}/man8/fdrd.8

%post
-%systemd_post %{name}.service
+%systemd_post %{name}d.service

%preun
-%systemd_preun %{name}.service
+%systemd_preun %{name}d.service

%postun
-%systemd_postun_with_restart %{name}.service
+%systemd_postun_with_restart %{name}d.service

%files
%{_sbindir}/fdrd
-%{_unitdir}/fdr.service
+%{_unitdir}/fdrd.service
%{_datadir}/fdr/samples/nfs
%{_sysconfdir}/logrotate.d/nfs
%{_mandir}/man8/*
diff --git a/fdrd.man b/fdrd.man
index d5199f0..99f7f80 100644
--- a/fdrd.man
+++ b/fdrd.man
@@ -27,7 +27,7 @@ available. Error messages from fdr can be viewed via systemctl,
for example,
.P
.B
-systemctl status -l fdr
+systemctl status -l fdrd
.SH Configuration File Syntax

The following keywords and options are recognized
diff --git a/fdr.service b/fdrd.service
similarity index 100%
rename from fdr.service
rename to fdrd.service
--
2.34.1