From e5bfffb48cff9025c33da661c0ec6055631c4a6b Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Mon, 3 Apr 2017 16:16:21 +0530 Subject: [PATCH] CLOUDSTACK-9857: With this change if agent dies the systemd will catch it properly and show process as exited Signed-off-by: Rohit Yadav --- packaging/centos63/cloud-agent.rc | 1 + packaging/centos7/cloud-agent.rc | 1 + packaging/fedora20/cloud-agent.rc | 1 + packaging/fedora21/cloud-agent.rc | 1 + 4 files changed, 4 insertions(+) diff --git a/packaging/centos63/cloud-agent.rc b/packaging/centos63/cloud-agent.rc index aad95828f6d..870a35aef90 100755 --- a/packaging/centos63/cloud-agent.rc +++ b/packaging/centos63/cloud-agent.rc @@ -2,6 +2,7 @@ # chkconfig: 35 99 10 # description: Cloud Agent +# pidfile: /var/run/cloudstack-agent.pid # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/packaging/centos7/cloud-agent.rc b/packaging/centos7/cloud-agent.rc index aad95828f6d..870a35aef90 100755 --- a/packaging/centos7/cloud-agent.rc +++ b/packaging/centos7/cloud-agent.rc @@ -2,6 +2,7 @@ # chkconfig: 35 99 10 # description: Cloud Agent +# pidfile: /var/run/cloudstack-agent.pid # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/packaging/fedora20/cloud-agent.rc b/packaging/fedora20/cloud-agent.rc index 6cc6abc5e5f..2defa148883 100755 --- a/packaging/fedora20/cloud-agent.rc +++ b/packaging/fedora20/cloud-agent.rc @@ -2,6 +2,7 @@ # chkconfig: 35 99 10 # description: Cloud Agent +# pidfile: /var/run/cloudstack-agent.pid # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/packaging/fedora21/cloud-agent.rc b/packaging/fedora21/cloud-agent.rc index 6cc6abc5e5f..2defa148883 100755 --- a/packaging/fedora21/cloud-agent.rc +++ b/packaging/fedora21/cloud-agent.rc @@ -2,6 +2,7 @@ # chkconfig: 35 99 10 # description: Cloud Agent +# pidfile: /var/run/cloudstack-agent.pid # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file