Hey Bohdan,
You can use the unistart and unishutdown to stop only specific services - those of the WCC.
I Created a small bash script (you might need to edit it as the services of the wcc might be called diffrent at your installation [basilcy anything with wcc in it is related]) to do this for me :
###### Script by Yoni A , for autosys WCC #######
#!/bin/sh
# to use scrip run : ./start_stop_WCC start/stop
action=$1
#check if start or stop
if [ "$action" == "start" ]; then
echo the Command is = 'unistart CA-wcc CA-wcc-services CA-wcc-db'
unistart CA-wcc CA-wcc-services CA-wcc-db
unisrvcntr status
exit 0
fi
if [ "$action" == "stop" ]; then
echo the Command is = 'unishutdown CA-wcc CA-wcc-services CA-wcc-db'
unishutdown CA-wcc CA-wcc-services CA-wcc-db
unisrvcntr status
exit 0
fi
echo "no such option please use start or stop"
unisrvcntr status
exit 2
#=======================================
Hope it helps,
Yoni
Original Message:
Sent: 12-24-2019 04:13 AM
From: Bohdan Zaiachkovskyi
Subject: restarting services with unicntrl
Hi!
I'd like to manage all AutoSys services with unicntrl stop\start\restsrt ALL.
I have next services in my installation:
CA-CCS CA-WAAE CA-ais CA-alert CA-cal CA-cam CA-cauwvdmn CA-cci CA-diadna CA-diaukb CA-em CA-emsrvc CA-help CA-opr CA-snmp CA-star CA-wcc CA-wcc-db CA-wcc-services CA-wvubi postgres waae_agent-WA_AGENT waae_sched.P03 waae_server.P03
If i run "unicntrl stop ALL", CA-wcc, CA-wcc-db and CA-wcc-services remain in running status, but if I stop them separately from other services with "unicntrl stop CA-wcc CA-wcc-db CA-wcc-services" I get them stopped.
Is there any way to stop wcc* services with "unicntrl stop ALL"?