summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-01-31 11:05:56 -0500
committerSteve Dickson <steved@redhat.com>2014-03-24 16:30:04 -0400
commit013ffe58343d922505e561af57bdb1f93078361a (patch)
treeac95fe0964fcabedb35323dbf6bf09ce63225e77
parent94ec315e6f550b2400a4498a0b11a186d843704f (diff)
downloadnfs-utils-013ffe58343d922505e561af57bdb1f93078361a.tar.gz
nfs-utils-013ffe58343d922505e561af57bdb1f93078361a.tar.xz
nfs-utils-013ffe58343d922505e561af57bdb1f93078361a.zip
start-statd: converted to use systemd
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/statd/start-statd7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/statd/start-statd b/utils/statd/start-statd
index 1b345a5..cde3583 100644
--- a/utils/statd/start-statd
+++ b/utils/statd/start-statd
@@ -5,5 +5,8 @@
# It should run statd with whatever flags are apropriate for this
# site.
PATH=/sbin:/usr/sbin
-exec rpc.statd --no-notify
-
+if systemctl start statd.service
+then :
+else
+ exec rpc.statd --no-notify
+fi