Created
December 16, 2015 15:27
-
-
Save koehn/c8c8e33388677e09352a to your computer and use it in GitHub Desktop.
Required for my `/etc/init.d/diaspora` init script. Put this into `/home/diaspora/diaspora/diaspora-init`.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash --login | |
shopt -s expand_aliases | |
export RAILS_ENV=production | |
export DB=postgres | |
cd /home/diaspora/diaspora | |
./script/server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, a reminder to to make it executable! (I forgot and took me a few minutes to find my mistake). As of 3-May-2018 using Diaspora 0.7.4.1 this works for me for startup but not stop. It reports [OK] but the service keeps running.