From 4008ff681ac90307a4ca25c42cf4689cb2c490bb Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 31 Jan 2014 11:02:57 -0500 Subject: Added systemd/rpc-statd-notify.service Signed-off-by: Steve Dickson --- systemd/rpc-statd-notify.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 systemd/rpc-statd-notify.service diff --git a/systemd/rpc-statd-notify.service b/systemd/rpc-statd-notify.service new file mode 100644 index 0000000..9d972fc --- /dev/null +++ b/systemd/rpc-statd-notify.service @@ -0,0 +1,17 @@ +[Unit] +Description=Notify NFS peers of a restart +DefaultDependencies=no +Requires=network-online.target +After=network-online.target nss-lookup.target + +# if we run an nfs server, it needs to be running before we +# tell clients that it has restarted. +After=nfs-server.service + +[Service] +EnvironmentFile=-/run/sysconfig/nfs-utils +ExecStartPre=/usr/lib/systemd/scritps/nfs-utils_env.sh + +Type=oneshot +RemainAfterExit=yes +ExecStart=-/usr/sbin/sm-notify -d $SMNOTIFYARGS -- cgit