service_group="`echo "$service_block" | sed -nr "s/^[[:space:]]*group[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$/\1/p"`"
if [ -n "$service_group" ]; then
- for service_group_x in $service_user; do
+ for service_group_x in $service_group; do
service_group_chk="`getent passwd $service_group_x`" || true
if [ -z "$service_group_chk" ]; then
cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - group '$service_group_x' does not exist."
# Check service's binary
service_server="`echo "$service_block" | sed -nr "s/^[[:space:]]*server[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$/\1/p"`"
- if [ -n "$service_server" ] && [ ! -x "$service_server" ]; then
- cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - server '$service_server' does not exist."
- service_disable=1
+ if [ -n "$service_server" ]; then
+
+ for service_server_x in $service_server; do
+ if [ ! -x "$service_server_x" ]; then
+ cp_echo "CN: Error in /etc/xinetd.d/$services_file for service '$service' - server '$service_server_x' does not exist."
+ service_disable=1
+ break
+ fi
+ done
fi
if [ $service_disable -eq 1 ]; then