Finish setting up service file & script

This commit is contained in:
Starbeamrainbowlabs 2018-11-11 11:18:58 +00:00
parent 9ebe99ca6f
commit ba3142894f
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 9 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Type=simple
# Another Type option: forking
User=rhinoreminds
WorkingDirectory=/srv/rhinoreminds
ExecStart=/usr/bin/mono /srv/rhinoreminds/RhinoReminds.service --domain starbeamrainbowlabs.com
ExecStart=/srv/rhinoreminds/start_service.sh
Restart=on-failure
# Other Restart options: or always, on-abort, etc

8
start_service.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source .xmpp_credentials
export XMPP_JID;
export XMPP_PASSWORD;
exec /usr/bin/mono RhinoReminds.exe --domain starbeamrainbowlabs.com