rpc-statd configuration
This commit is contained in:
parent
36e634d250
commit
806bbab3b7
20
rpc/rpc-statd.service
Normal file
20
rpc/rpc-statd.service
Normal file
@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=NFS status monitor for NFSv2/3 locking.
|
||||
DefaultDependencies=no
|
||||
Conflicts=umount.target
|
||||
Requires=nss-lookup.target rpcbind.socket
|
||||
After=network.target nss-lookup.target rpcbind.socket
|
||||
|
||||
PartOf=nfs-utils.service
|
||||
|
||||
Wants=nfs-config.service rpc-statd-notify.service
|
||||
After=nfs-config.service
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/run/sysconfig/nfs-utils
|
||||
Type=forking
|
||||
PIDFile=/var/run/rpc.statd.pid
|
||||
ExecStart=/sbin/rpc.statd --no-notify $STATDARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
24
rpc/update-rpc.yml
Normal file
24
rpc/update-rpc.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: update rpc-statd
|
||||
hosts: docker_swarm
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: update rpc config
|
||||
copy:
|
||||
src: rpc-statd.service
|
||||
dest: /lib/systemd/system/rpc-statd.service
|
||||
|
||||
- name: stop and disable rpc
|
||||
systemd:
|
||||
name: rpc-statd
|
||||
state: stopped
|
||||
enabled: false
|
||||
|
||||
- name: start and enable rpc
|
||||
systemd:
|
||||
name: rpc-statd
|
||||
state: started
|
||||
enabled: true
|
Loading…
Reference in New Issue
Block a user