rpc-statd configuration

This commit is contained in:
pgrondek 2020-04-10 21:23:29 +02:00
parent 36e634d250
commit 806bbab3b7
2 changed files with 44 additions and 0 deletions

20
rpc/rpc-statd.service Normal file
View 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
View 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