RhinoReminds/start_service.sh

13 lines
419 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-12-27 14:05:40 +00:00
cd data;
source .xmpp_credentials;
2018-12-27 14:05:40 +00:00
# Execute & disown
# We pass the environment variables explicitly here, as then we don't accidentally pass something private.
# Better to be safe than sorry - defence in depth!
sudo -u username_here XMPP_JID="${XMPP_JID}" XMPP_PASSWORD="${XMPP_PASSWORD}" /usr/bin/mono RhinoReminds.exe --domain starbeamrainbowlabs.com
echo "$!" >/run/rhinoreminds.pid;
disown;