- nfsserver.service. Provide ExecReload directive.
This allows "systemctl reload nfsserver" to work. PropagatesReloadTo but itself is not enough if this unit doesn't have it's own Reload handler. OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=141
This commit is contained in:
parent
a3298265f8
commit
e22574979a
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 24 02:29:36 UTC 2015 - nfbrown@suse.com
|
||||||
|
|
||||||
|
- nfsserver.service. Provide ExecReload directive.
|
||||||
|
This allows "systemctl reload nfsserver" to work.
|
||||||
|
PropagatesReloadTo but itself is not enough if this
|
||||||
|
unit doesn't have it's own Reload handler.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 13 02:36:16 UTC 2015 - nfbrown@suse.com
|
Thu Aug 13 02:36:16 UTC 2015 - nfbrown@suse.com
|
||||||
|
|
||||||
|
@ -11,12 +11,15 @@ Description=Alias for NFS server
|
|||||||
# nfs-server.d/nfsserver.conf is part of this service.
|
# nfs-server.d/nfsserver.conf is part of this service.
|
||||||
|
|
||||||
Requires= nfs-server.service
|
Requires= nfs-server.service
|
||||||
PropagatesReloadTo=nfs-server.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/true
|
ExecStart=/bin/true
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
# Can't just PropagatesReloadTo to nfs-server.service
|
||||||
|
# as reload fails if we don't have our own ExecReload
|
||||||
|
# So copy that from nfs-server.service
|
||||||
|
ExecReload=/usr/sbin/exportfs -r
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user