Hello Fedya,
Problem with your solution is that you have to provide the command with a password, this can be solved by sourcing the password in a script, but this is not secure enough for us.
I have found the following solution for the automatic start/stop, which can be executed from the instance profile of the NW JAVA instance in which our IDM is running:
put this syntax in the bottom of your instance profile:
#-----------------------------------------------------------------------
# Start/stop IDM Dispatchers
#-----------------------------------------------------------------------
Execute_10 = local csh -c "$(DIR_INSTANCE)/IDM/identitycenter/Service-Scripts/start_dispatchers.sh"
Stop_Program_00 = local csh -c "$(DIR_INSTANCE)/IDM/identitycenter/Service-Scripts/stop_dispatchers.sh"
cat start_dispatchers.sh
#!/bin/sh
FILE=/usr/sap/XXX/JXX/IDM/identitycenter/Service-Scripts/dispatchers.txt
DIR1=/usr/sap/XXX/JXX/IDM/identitycenter/Service-Scripts
# Bepaal welke dispatchers er zijn gedefinieerd
cd $DIR1
rm $FILE
ls -l Dispatcher_Service_*.sh | awk '{print $9}' >> $FILE
# Start dispatchers
cat $FILE | while read regel
do
sh ./$regel &
done
cat stop_dispatchers.sh
#!/bin/sh
ps -ef | grep Dispatcher_Service | grep .prop | awk '{print $2}' | while read regel; do kill -9 $regel; done