summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
diff options
context:
space:
mode:
authorMuhammad Shakeel <muhammad_shakeel@mentor.com>2013-09-04 11:05:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-10 23:15:15 +0100
commit703104c2789e96532daf25f1de27593f6b6d174a (patch)
tree8fa13f0dbe3c846d28787a52aacc2e8dd789d87d /meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
parent06ecd689aeff3879df31b0ae73aab732292d1b08 (diff)
downloadpoky-703104c2789e96532daf25f1de27593f6b6d174a.tar.gz
nfs-utils: Add systemd support
- Remove dependency on meta-systemd (From OE-Core rev: 644394c074c359505fcd750356fb4db58b939729) Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
new file mode 100644
index 0000000000..147d7a7b5f
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
@@ -0,0 +1,18 @@
1[Unit]
2Description=NFS Server
3Requires=rpcbind.service nfs-mountd.service
4After=rpcbind.service
5
6[Service]
7Type=oneshot
8EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
9ExecStartPre=@SBINDIR@/exportfs -r
10ExecStart=@SBINDIR@/rpc.nfsd $NFSD_OPTS $NFSD_COUNT
11ExecStop=@SBINDIR@/rpc.nfsd 0
12ExecStopPost=@SBINDIR@/exportfs -f
13ExecReload=@SBINDIR@/exportfs -r
14StandardError=syslog
15RemainAfterExit=yes
16
17[Install]
18WantedBy=multi-user.target