From 2b391781d2f05aed2d6df0c8235eaf96af8f5967 Mon Sep 17 00:00:00 2001 From: Spyros Ligouras Date: Fri, 19 Jul 2013 12:47:01 +0300 Subject: [PATCH] changed supervisor home to /opt --- scripts/haki.service | 2 +- scripts/init.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/haki.service b/scripts/haki.service index 77d9e6e0..4f2f0fdd 100644 --- a/scripts/haki.service +++ b/scripts/haki.service @@ -4,7 +4,7 @@ Requires=network.target After=network.target [Service] -ExecStart=/home/haki/ewa-client-bootstrap/supervisor.js +ExecStart=/opt/ewa-client-bootstrap/supervisor.js ExecReload=/bin/kill -HUP $MAINPID StandardOutput=null Restart=on-failure diff --git a/scripts/init.sh b/scripts/init.sh index a0edfcc0..52b327bb 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -18,12 +18,11 @@ pacman --noconfirm --sync --needed --quiet git nodejs openvpn yaourt yaourt --noconfirm --sync heroku-toolbelt > /dev/null # node app setup -cd /home/haki && git clone git@bitbucket.org:rulemotion/$REPO.git -cd /home/haki && chown -R haki:haki $REPO -cd /home/haki/$REPO && sudo -u haki npm install +cd /opt && git clone git@bitbucket.org:rulemotion/$REPO.git +cd /opt/$REPO && sudo -u haki npm install # system service setup -cp /home/haki/$REPO/scripts/haki.service /etc/systemd/system/haki.service +cp /opt/$REPO/scripts/haki.service /etc/systemd/system/haki.service systemctl enable haki systemctl start haki