Entries with tag graph database .

OrientDB is a multi-model database that combines the best of a document database and a graph database. I've played around with it off and on, but one difficulty is that I've always had to restart the server manually whenever I reboot my Mac. Being an old Linux guy, steeped in chron and /etc/init.d , I've never taken the time to learn Apple's launchd system or the plist files they depend on. Until now. Turns out they're pretty simple. The Orientdb documentation covers basic installation of the database pretty well so I won't repeat that here. Instead I'll detail the part I couldn't find, installing the database as a service which starts on system boot. Most of this is cribbed from this article on installing MongoDB as a service on OS X, so thank you Mr. Ali Al Dallal for that.

I usually install third party tools that don't have any installer in /usr/local , and being an old Linux guy I usually decompress the versioned directory from the tarball in /usr/local and then create a soft link to it, so my path the OrienDB install is /usr/local/orientdb . The plist I used is available as a GIthub gist here . It goes in /Library/LaunchDaemons, named, for instance org.orientdb.orientdb.plist . As you can see in the gist, stdout and stderr are redirected to log files /var/log/orientdb/sout.log and /var/log/orientdb/serror.log respectively, so we need to create that directory :