Split out NFS server daemons into individual service files (bz 769879)
Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
parent
470c3f7bf3
commit
01ad8e0700
@ -1,8 +1,7 @@
|
||||
[Unit]
|
||||
Description=NFSv4 ID-name mapping daemon
|
||||
Wants=var-lib-nfs-rpc_pipefs.mount
|
||||
Requires=network.target var-lib-nfs-rpc_pipefs.mount
|
||||
After=syslog.target network.target named.service
|
||||
BindTo=nfs-server.service
|
||||
After=nfs-server.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
@ -11,4 +10,4 @@ EnvironmentFile=-/etc/sysconfig/nfs
|
||||
ExecStart=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=nfs.target
|
||||
|
13
nfs-mountd.service
Normal file
13
nfs-mountd.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=NFS Mount Daemon
|
||||
BindTo=nfs-server.service
|
||||
After=nfs-server.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=-/etc/sysconfig/nfs
|
||||
ExecStart=/usr/sbin/rpc.mountd $RPCMOUNTDARGS
|
||||
StandardError=syslog+console
|
||||
|
||||
[Install]
|
||||
WantedBy=nfs.target
|
13
nfs-rquotad.service
Normal file
13
nfs-rquotad.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=NFS Remote Quota Server
|
||||
BindTo=nfs-server.service
|
||||
After=nfs-server.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
StandardError=syslog+console
|
||||
EnvironmentFile=-/etc/sysconfig/nfs
|
||||
ExecStart=-/usr/sbin/rpc.rquotad $RPCRQUOTADOPTS
|
||||
|
||||
[Install]
|
||||
WantedBy=nfs.target
|
@ -2,9 +2,6 @@
|
||||
|
||||
. /etc/sysconfig/nfs
|
||||
|
||||
# Tell idmapd the server is up and running
|
||||
/usr/bin/pkill -HUP rpc.idmapd
|
||||
|
||||
#
|
||||
# Enabled the RDMA server support if configured to do so.
|
||||
#
|
||||
|
@ -1,18 +1,17 @@
|
||||
[Unit]
|
||||
Description=NFS Server
|
||||
Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount rpcbind.service
|
||||
After=network.target named.service rpcbind.service proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount
|
||||
Requires=nfs-idmap.service nfs-mountd.service nfs-rquotad.service
|
||||
After=network.target named.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
StandardError=syslog+console
|
||||
EnvironmentFile=-/etc/sysconfig/nfs
|
||||
ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig
|
||||
ExecStartPre=-/usr/sbin/rpc.rquotad $RPCRQUOTADOPTS
|
||||
ExecStartPre=/usr/sbin/exportfs -r
|
||||
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT}
|
||||
ExecStartPost=/usr/sbin/rpc.mountd $RPCMOUNTDOPTS
|
||||
ExecStartPost=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS
|
||||
ExecStartPost=-/usr/lib/nfs-utils/scripts/nfs-server.postconfig
|
||||
ExecStop=/usr/sbin/rpc.nfsd 0
|
||||
ExecStopPost=/usr/sbin/exportfs -f
|
||||
|
@ -17,7 +17,11 @@ Source12: nfs-secure.service
|
||||
Source13: nfs-secure-server.service
|
||||
Source14: nfs-server.service
|
||||
Source15: nfs-blkmap.service
|
||||
%define nfs_services %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15}
|
||||
Source16: nfs-rquotad.service
|
||||
Source17: nfs-mountd.service
|
||||
Source18: nfs-idmap.service
|
||||
Source19: nfs.target
|
||||
%define nfs_services %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19}
|
||||
|
||||
Source20: var-lib-nfs-rpc_pipefs.mount
|
||||
Source21: proc-fs-nfsd.mount
|
||||
@ -283,6 +287,7 @@ fi
|
||||
%changelog
|
||||
* Tue May 15 2012 Steve Dickson <steved@redhat.com> 1.2.6-0
|
||||
- Update to the latest upstream release: nfs-utils-1.2.6
|
||||
- Split out NFS server daemons into individual service files (bz 769879)
|
||||
|
||||
* Thu May 3 2012 Steve Dickson <steved@redhat.com> 1.2.5-16
|
||||
- Update to the latest RC release: nfs-utils-1.2.6-rc7
|
||||
|
7
nfs.target
Normal file
7
nfs.target
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Network File System Server
|
||||
Requires=var-lib-nfs-rpc_pipefs.mount proc-fs-nfsd.mount rpcbind.service
|
||||
After=network.target named.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user