]>
Commit | Line | Data |
---|---|---|
24570706 JR |
1 | #!/bin/sh |
2 | ||
3 | # Get service config | |
4 | [ -f /etc/sysconfig/nfslock ] && . /etc/sysconfig/nfslock | |
5 | ||
6 | ||
7 | # Set the ports lockd should listen on | |
8 | if [ -n "$LOCKD_TCPPORT" ]; then | |
9 | /sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1 | |
10 | fi | |
11 | if [ -n "$LOCKD_UDPPORT" ]; then | |
12 | /sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1 | |
13 | fi |