If you read my post on Upstart a while ago you know that I’m a fan of Upstart.
But I hadn’t sat down to redo my old (and crummy) OID/OVD start scripts to use Upstart until this week partly because “if it ain’t broke don’t fix it” but partly because who the heck has time?!
This week I needed to create a new environment to put together a demo of the Mobile side of OAM Mobile and Social and thought I’d take a few minutes to fix that. It didn’t take all that long.
Here’s my /etc/init/oid.conf
start on runlevel  # This is good for debugging purposes but it's a bad idea to leave # this on long term. #console output # this starts OPMN, OID and OVD pre-start script /bin/su - oracle -c "/home/oracle/middleware/asinst_1/bin/opmnctl startall" end script # and this stops them post-stop script /bin/su - oracle -c "/home/oracle/middleware/asinst_1/bin/opmnctl stopall" end script # note that I'm only starting the AdminServer here exec /bin/su - oracle -- /home/oracle/middleware/user_projects/domains/IDMDomain/bin/startWebLogic.sh
Note: Because this is a little test environment and I want to keep the memory down and don’t need DIP or a bunch of other stuff I simply moved ODSM from wls_ods1 to the Admin Server. That lets me run OID and ODSM without needing to start the wls_ods1 managed server.
All site content is the property of Oracle Corp. Redistribution not allowed without written permission