Skip to content

Commit 39c14ab

Browse files
committedOct 21, 2015
install-reddit: Use a single app to init the DBs before going live.
Previously, we'd end up in a situation where all the processes starting up at the same time caused a big mess and failed more often than not. This should be a lot cleaner, if a tiny bit slower.
1 parent 483b3b7 commit 39c14ab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎install-reddit.sh

+10
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,16 @@ set_consumer_count automoderator_q 0
732732

733733
chown -R $REDDIT_USER:$REDDIT_GROUP $CONSUMER_CONFIG_ROOT/
734734

735+
736+
###############################################################################
737+
# Start everything up
738+
###############################################################################
739+
740+
# the initial database setup should be done by one process rather than a bunch
741+
# vying with eachother to get there first
742+
reddit-run -c 'print "ok done"'
743+
744+
# ok, now start everything else up
735745
initctl emit reddit-stop
736746
initctl emit reddit-start
737747

0 commit comments

Comments
 (0)
Please sign in to comment.