From e83ba12badddde4ea3b457e361893a53b0c937f5 Mon Sep 17 00:00:00 2001 From: Sebastian Robitzsch <sebastian.robitzsch@interdigital.com> Date: Fri, 23 Nov 2018 13:18:09 +0000 Subject: [PATCH] Make CLMC start after FQDN registration service. Closes #90 --- scripts/clmc-service/install-clmc-service.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/clmc-service/install-clmc-service.sh b/scripts/clmc-service/install-clmc-service.sh index 126ea5f..ff396fc 100755 --- a/scripts/clmc-service/install-clmc-service.sh +++ b/scripts/clmc-service/install-clmc-service.sh @@ -112,7 +112,8 @@ chmod 755 $start_script_file file="/lib/systemd/system/flameclmc.service" echo "[Unit]" > $file echo "Description=flameclmc" >> $file -echo "After=network.target" >> $file +echo "After=flame-fqdn-registration.service" >> $file +echo "Requires=flame-fqdn-registration.service" >> $file echo "" >> $file echo "[Service]" >> $file echo "Type=forking" >> $file @@ -135,4 +136,4 @@ done # install and start nginx apt-get install nginx -y cp ${REPO_ROOT}/scripts/clmc-service/nginx.conf /etc/nginx/nginx.conf -systemctl restart nginx # nginx is already started on installation, to read the new conf it needs to be restarted \ No newline at end of file +systemctl restart nginx # nginx is already started on installation, to read the new conf it needs to be restarted -- GitLab