Reputation: 129
I want to initialize a demo hybris system every 2 days. How can I call the initialize from a Cronjob?
I already searched for it but didn't found any solutions
Upvotes: 0
Views: 239
Reputation: 5810
You can initialize your system through ant target ant initialize
. Configure a shell script in crontab like...
hybrisServer.sh
cd /opt/app/hybris/bin/platform/
./hybrisserver.sh stop
. ./setantenv.sh
ant initialize
./hybrisserver.sh start
crontab -e
0 24 */2 * * hybrisServer.sh
Upvotes: 1