HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //usr/syno/lib/systemd/scripts/statd.sh
#!/bin/bash
# Copyright (c) 2000-2018 Synology Inc. All rights reserved.

EnableCustomPort=`/bin/get_key_value /etc/nfs/syno_nfs_conf nfs_custom_port_enable`
StatdPort=`/bin/get_key_value /etc/nfs/syno_nfs_conf statd_port`

case $1 in
	start)
		if [ x$EnableCustomPort == xyes ] && [ x$StatdPort != x ] ; then
			/usr/sbin/statd -p $StatdPort
		else
			/usr/sbin/statd -p 662
		fi
	;;

	*)
		echo "Usages: $0 [start]"
	;;
esac