2018-11-11 11:18:58 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-12-27 14:05:40 +00:00
|
|
|
cd data;
|
|
|
|
source .xmpp_credentials;
|
2018-11-11 11:18:58 +00:00
|
|
|
|
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;
|
2018-11-11 11:18:58 +00:00
|
|
|
|