make SO logs persistent 32/5532/1
authorJeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
Thu, 5 Oct 2017 19:21:07 +0000 (15:21 -0400)
committerJeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
Thu, 5 Oct 2017 19:21:07 +0000 (15:21 -0400)
Signed-off-by: Jeremy Mordkoff <Jeremy.Mordkoff@riftio.com>
installers/install_osm.sh

index 4046cfb..d51cf85 100755 (executable)
@@ -188,6 +188,12 @@ function configure(){
     echo -e "       Configuring SO"
     sudo route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP
     sudo sed -i "$ i route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP" /etc/rc.local
+
+    # make journaling persistent
+    lxc exec SO-ub -- mkdir -p /var/log/journal
+    lxc exec SO-ub -- systemd-tmpfiles --create --prefix /var/log/journal
+    lxc exec SO-ub -- systemctl restart systemd-journald
+
     echo RIFT_EXTERNAL_ADDRESS=$DEFAULT_IP | lxc exec SO-ub -- tee -a /usr/rift/etc/default/launchpad
 
     lxc exec SO-ub -- systemctl restart launchpad