15 lines
593 B
Bash
Executable file
15 lines
593 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
cd data;
|
|
source .xmpp_credentials;
|
|
|
|
# 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!
|
|
export XMPP_JID;
|
|
export XMPP_PASSWORD;
|
|
|
|
# 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'
|