HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
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