Hello!
Thought I'd share my small adjustment to "startdog-server" startup script. The issue I had with it was that it just wouldn't start "stardog-admin" part as "stardog" user.
The cause for that appeared to be the "homelessness" of "stardog" user - it wasn't created with its own home directory and everything else that this entails.
A couple of small adjustments to the startup script, which uses a dedicated "-s" option instead of specifying $BASH as a part of "-c" argument, fixes this:
start()
su $USERNAME - -c "$BASH ${STARDOG_BIN}/stardog-admin server start --home $STARDOG_HOME --port $PORT"
becomes:
su $USERNAME - -s $BASH -c "${STARDOG_BIN}/stardog-admin server start --home $STARDOG_HOME --port $PORT"
stop()
su $USERNAME - -c "$BASH ${STARDOG_BIN}/stardog-admin --server snarl://localhost:$PORT/ server stop"
becomes:
su $USERNAME - -s $BASH -c "${STARDOG_BIN}/stardog-admin --server snarl://localhost:$PORT/ server stop"
Additionally, I'd suggest replacing "localhost" with "127.0.0.1" since there are rare *NIX configurations that do not resolve "localhost" to the IP address.
Does that make sense?