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!
|
2019-02-01 22:26:22 +00:00
|
|
|
export XMPP_JID;
|
|
|
|
export XMPP_PASSWORD;
|
2018-11-11 11:18:58 +00:00
|
|
|
|
2019-02-01 22:26:22 +00:00
|
|
|
# Create the pidfile directory
|
|
|
|
mkdir /run/rhinoreminds; chmod 0700 /run/rhinoreminds; chown rhinoreminds:rhinoreminds /run/rhinoreminds;
|
|
|
|
|
|
|
|
sudo -E -u rhinoreminds bash -c '/usr/bin/mono ../bin/RhinoReminds.exe --domain starbeamrainbowlabs.com --avatar avatar.png & echo "$!" >/run/rhinoreminds/rhinoreminds.pid; disown'
|