summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2016-09-12 11:33:35 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2019-01-28 16:22:22 -0500
commite9c469fa6327ca0b8d9581b944649c0a48da94b4 (patch)
treeb557b509964a8fc4cadff9d34f1e7f836c4c80df
parentdf5ec0a7c1d8a78d8a0386d7c8fccf7c8647407c (diff)
shepherd: Add M3 DB replica service.
-rw-r--r--dotfiles/.config/shepherd/init.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/dotfiles/.config/shepherd/init.scm b/dotfiles/.config/shepherd/init.scm
index 349a8a6..5ee7b5f 100644
--- a/dotfiles/.config/shepherd/init.scm
+++ b/dotfiles/.config/shepherd/init.scm
@@ -102,6 +102,15 @@ Ruby version, and listens on PORT."
(rails-service "ua" "3000" "2.1.5" '(api))
(rails-service "m3" "3001" "2.2.2" '(api ua punjab openfire sidekiq))
+ ;; M3 DB replica
+ (make <service>
+ #:provides '(m3-replica)
+ #:start (make-forkexec-constructor
+ `("mysqld"
+ "--defaults-file=/home/dthompson/Code/m3/replica/etc/my.cnf"
+ "--user=dthompson"))
+ #:stop (make-kill-destructor))
+
;; Punjab (BOSH)
(let* ((punjab-home (string-append %home "/Code/vhl-bosh"))
(punjab-config (string-append punjab-home "/conf/development.tac")))