From 4d1d016325cf48a42fa2a4081633400433ed3e74 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Wed, 15 Jul 2015 13:33:47 -0400 Subject: [PATCH] Add simple systemd service file for confluent server. The sysvinit scripts were not returning the same informational messages when run under systemctl as they were when run under service. --- confluent_server/MANIFEST.in | 1 + confluent_server/setup.py.tmpl | 1 + confluent_server/systemd/confluent.service | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 confluent_server/systemd/confluent.service diff --git a/confluent_server/MANIFEST.in b/confluent_server/MANIFEST.in index 9a596b39..849e5d43 100644 --- a/confluent_server/MANIFEST.in +++ b/confluent_server/MANIFEST.in @@ -1 +1,2 @@ include sysvinit/* +include systemd/* diff --git a/confluent_server/setup.py.tmpl b/confluent_server/setup.py.tmpl index f1976672..86ffe696 100644 --- a/confluent_server/setup.py.tmpl +++ b/confluent_server/setup.py.tmpl @@ -15,6 +15,7 @@ setup( 'pyghmi>=0.6.5'], scripts=['bin/confluent'], data_files=[('/etc/init.d', ['sysvinit/confluent']), + ('/usr/lib/systemd/system', ['systemd/confluent.service']), ('/opt/confluent/lib/python/confluent/plugins/console/', [])], ) diff --git a/confluent_server/systemd/confluent.service b/confluent_server/systemd/confluent.service new file mode 100644 index 00000000..efe15527 --- /dev/null +++ b/confluent_server/systemd/confluent.service @@ -0,0 +1,12 @@ +# IBM(c) 2015 Apache 2.0 +[Unit] +Description=Confluent hardware manager + +[Service] +Type=forking +PIDFile=/var/run/confluent/pid +ExecStart=/opt/confluent/bin/confluent + +[Install] +WantedBy=multi-user.target +