Hi there,

i have a prob with starting xinetd.
After installing xinetd with ipkg the file /opt/etc/init.d/S10xinetd is created.

But this file does not work with the start|stop feature of rc.unslung.

So i modified the file.
my /opt/etc/init.d/S10xinetd:
Code:
#!/bin/sh
OPTWARE_TARGET=oleg
#
# Startup script for xinetd
#
# Stop myself if running
case $1 in
start)
/opt/sbin/xinetd
;;
stop)
killall xinetd 2>/dev/null

# Stop other inetd processes if running
if [ ${OPTWARE_TARGET} = "nslu2" ] ; then
  killall inetd 2>/dev/null
fi
;;
*)

echo "usage: $0 (start|stop)"
exit 1
esac
BUT
If xinetd started smbd and nmbd and is the stopped with "/opt/etc/init.d/S10xinetd stop" the both services (smbd and nmbd) are still running.
Questions:
1) Is this supposed to act this way?
2) could someone please have a look at my version because i am not that good with scripting...

Thanks
wengi