- 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:
Neil Brown 2015-09-24 02:31:01 +00:00 committed by Git OBS Bridge
parent a3298265f8
commit e22574979a
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -11,12 +11,15 @@ Description=Alias for NFS server
# nfs-server.d/nfsserver.conf is part of this service.
Requires= nfs-server.service
PropagatesReloadTo=nfs-server.service
[Service]
Type=oneshot
ExecStart=/bin/true
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]
WantedBy=multi-user.target