Fletch wrote: > I don't know a way to test the version of the killproc() function. > Something ugly like the following should work. > > Code: > -------------------- > if [ `grep -c 'Usage: killproc.*-d delay' /etc/init.d/functions` -ge 1 > ]; then > killproc -d 6 $SLIMSERVER_BIN > else > killproc $SLIMSERVER_BIN > fi > -------------------- > > > I'll check it in this way later today unless someone has a more elegant > solution.
How about: KILLPROC_FLAGS = '-d 6' if [ some_test_for_ClarkConnect ] KILLPROC_FLAGS = '' fi then later: killproc ${KILLPROC_FLAGS} ${SLIMSERVER_BIN} r. _______________________________________________ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/beta