#!/bin/bash # Copyright (c) 2000-2018 Synology Inc. All rights reserved. case $1 in start) Krb5Principal=`/bin/get_key_value /etc/nfs/syno_nfs_conf kerberos_principal` if [ "x$Krb5Principal" != x ]; then /usr/sbin/svcgssd -p $Krb5Principal else echo "Kerberos principal not exists" /bin/true fi ;; stop-post) /usr/bin/echo "$(/usr/bin/date +'%s')" > /proc/net/rpc/auth.rpcsec.context/flush ;; *) echo "Usages: $0 [start|stop-post]" ;; esac