stopping on Mac OS X (beginner question)

302 views
Skip to first unread message

Alex Greif

unread,
Jun 28, 2015, 2:05:13 AM6/28/15
to aran...@googlegroups.com
Hi,

just downloaded arangoDB for MAC OS X  as an application bundle "ArangoDB-CLI" (without package manager)
Doubleclicking starts it fine, and opens a shell window...

But I wonder, how can I stop the server?
In the web interface (http://127.0.0.1:8529/) I cannot find a shutdown function.

thanks,
Alex.

Max Neunhöffer

unread,
Jun 28, 2015, 2:44:04 AM6/28/15
to aran...@googlegroups.com
Hi,
You can just hit Ctrl-C in the shell window. The web UI does not have a shutdown, but there is an HTTP API for shutdown.
Max

Alex Greif

unread,
Jun 28, 2015, 4:23:57 AM6/28/15
to aran...@googlegroups.com
Hi Max,

Ctrl-C does not stop the server... it only returns to the shell prompt.
here is the shell output with a netstat and ps at the end.
I could only stop arango by killing the process.
Is stopping arangoDB with 'kill <pid>' a possible way, or does it cause some harm to the internals?

thanks,
Alex.


ArangoDB server has been started
...
Switching to log-file now, killing this windows will NOT stop the server.


^C

agreif@Alexs-MacBook-Pro:~ $ netstat |grep 8529
tcp4       0      0  localhost.8529         localhost.52807        ESTABLISHED
tcp4       0      0  localhost.52807        localhost.8529         ESTABLISHED

agreif@Alexs-MacBook-Pro:~ $ ps aux|grep arango
agreif          5064   0.0  0.0  2432768    512 s004  R+   10:16AM   0:00.01 grep arango
agreif          4879   0.0  3.8  5765728 159844   ??  Ss   10:12AM   0:08.90 /Applications/ArangoDB-CLI.app/Contents/MacOS/opt/arangodb/sbin/arangod -c /Applications/ArangoDB-CLI.app/Contents/MacOS/opt/arangodb/etc/arangodb/arangod.conf --daemon --pid-file /Applications/ArangoDB-CLI.app/Contents/MacOS/opt/arangodb/var/run/arangod.pid

Max Neunhöffer

unread,
Jun 28, 2015, 4:58:48 AM6/28/15
to aran...@googlegroups.com
Hi Alex,
Ok so this must be some different behaviour between Linux and Mac
OSX. It is save to do
kill <PID>
or even
killall arangodb
If you do
kill -9 <PID>
you might lose some uncomitted stuff.
Max
Reply all
Reply to author
Forward
0 new messages