]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/27-systemd-enable-with-systemctl-statd.patch
Merge branch 'sid'
[nfs-utils.git] / debian / patches / 27-systemd-enable-with-systemctl-statd.patch
1 Description: Let sysadmins enable/disable statd services
2  As the admin was able to control under upstart the statd services with
3  NEED_STATD in default conffiles, mirror this funcationality under systemd
4  by letting the user systemctl enable/disable statd services.
5 Author: Didier Roche <didrocks@ubuntu.com>
6 Bug-Ubuntu: https://launchpad.net/bugs/1428486
7 Index: nfs-utils-1.2.8/systemd/nfs-server.service
8 ===================================================================
9 --- nfs-utils-1.2.8.orig/systemd/nfs-server.service
10 +++ nfs-utils-1.2.8/systemd/nfs-server.service
11 @@ -3,8 +3,7 @@ Description=NFS server and services
12  DefaultDependencies=no
13  Requires= network.target proc-fs-nfsd.mount rpcbind.target
14  Requires= nfs-mountd.service
15 -Wants=rpc-statd.service nfs-idmapd.service
16 -Wants=rpc-statd-notify.service
17 +Wants=nfs-idmapd.service
18  
19  After= local-fs.target
20  After= network.target proc-fs-nfsd.mount rpcbind.target nfs-mountd.service
21 Index: nfs-utils-1.2.8/systemd/rpc-statd-notify.service
22 ===================================================================
23 --- nfs-utils-1.2.8.orig/systemd/rpc-statd-notify.service
24 +++ nfs-utils-1.2.8/systemd/rpc-statd-notify.service
25 @@ -17,3 +17,6 @@ After=nfs-config.service
26  EnvironmentFile=-/run/sysconfig/nfs-utils
27  Type=forking
28  ExecStart=-/sbin/sm-notify $SMNOTIFYARGS
29 +
30 +[Install]
31 +WantedBy=nfs-client.target
32 Index: nfs-utils-1.2.8/systemd/rpc-statd.service
33 ===================================================================
34 --- nfs-utils-1.2.8.orig/systemd/rpc-statd.service
35 +++ nfs-utils-1.2.8/systemd/rpc-statd.service
36 @@ -7,7 +7,7 @@ After=network.target nss-lookup.target r
37  
38  PartOf=nfs-utils.service
39  
40 -Wants=nfs-config.service
41 +Wants=nfs-config.service rpc-statd-notify.service
42  After=nfs-config.service
43  
44  [Service]
45 @@ -15,3 +15,6 @@ EnvironmentFile=-/run/sysconfig/nfs-util
46  Type=forking
47  PIDFile=/var/run/rpc.statd.pid
48  ExecStart=/sbin/rpc.statd --no-notify $STATDARGS
49 +
50 +[Install]
51 +WantedBy=nfs-server.service
52 Index: nfs-utils-1.2.8/systemd/nfs-client.target
53 ===================================================================
54 --- nfs-utils-1.2.8.orig/systemd/nfs-client.target
55 +++ nfs-utils-1.2.8/systemd/nfs-client.target
56 @@ -3,9 +3,7 @@ Description=NFS client services
57  Before=remote-fs-pre.target
58  Wants=remote-fs-pre.target
59  
60 -# Note: we don't "Wants=rpc-statd.service" as "mount.nfs" will arrange to
61 -# start that on demand if needed.
62 -Wants=nfs-blkmap.service rpc-statd-notify.service
63 +Wants=nfs-blkmap.service
64  After=nfs-blkmap.service
65  
66  # GSS services dependencies and ordering