Page 1 of 1

/etc/rc.d/nfsd syntax error in XigmaNAS 12.1 build 7509 at line 79

Posted: 06 Apr 2020 18:48
by phil1752
Hello there,

These is a small syntax error in XigmaNAS 12.1 build 7509 in the startup script /etc/rc.d/nfsd at line 79
There is a missing "fi" between lines 74 and 75
...
71 if ! checkyesno mountd_enable && \
72 ! /etc/rc.d/mountd forcestatus 1>/dev/null 2>&1
73 then
74 force_depend mountd || return 1
fi # is missing
75 if [ -n "${nfs_server_vhost}" ]; then
76 command_args="-V \"${nfs_server_vhost}\""
77 fi
78 return 0
79 }
....

It was OK with build 7321.

We notice it in the Menu "Status" -> "Service" in the column "Status" where the status remains a red "-".
All command lines actions like:
/etc/rc.d/nfsd status
/etc/rc.d/nfsd start
end with the error message "/etc/rc.d/nfsd: 79: Syntax error: "}" unexpected (expecting "fi")"

Re: /etc/rc.d/nfsd syntax error in XigmaNAS 12.1 build 7509 at line 79

Posted: 06 Apr 2020 18:59
by ms49434
phil1752 wrote:
06 Apr 2020 18:48
Hello there,

These is a small syntax error in XigmaNAS 12.1 build 7509 in the startup script /etc/rc.d/nfsd at line 79
There is a missing "fi" between lines 74 and 75
...
71 if ! checkyesno mountd_enable && \
72 ! /etc/rc.d/mountd forcestatus 1>/dev/null 2>&1
73 then
74 force_depend mountd || return 1
fi # is missing
75 if [ -n "${nfs_server_vhost}" ]; then
76 command_args="-V \"${nfs_server_vhost}\""
77 fi
78 return 0
79 }
....

It was OK with build 7321.

We notice it in the Menu "Status" -> "Service" in the column "Status" where the status remains a red "-".
All command lines actions like:
/etc/rc.d/nfsd status
/etc/rc.d/nfsd start
end with the error message "/etc/rc.d/nfsd: 79: Syntax error: "}" unexpected (expecting "fi")"
please download the update file from Sourceforge again and rerun the update.

Re: /etc/rc.d/nfsd syntax error in XigmaNAS 12.1 build 7509 at line 79

Posted: 07 Apr 2020 09:18
by raulfg3