From f0e8458f5d519b66a6311d12ee6f5b0aa4abe656 Mon Sep 17 00:00:00 2001 From: Dimitrios Markou Date: Thu, 12 Apr 2018 11:01:32 +0300 Subject: [PATCH] Add missing opendaylight.service template file ODL debian packages were building succesfully but when they were getting installed the ODL service was not started because of missing opendaylight.service file which is essential so the systemd can start the ODL service. Change-Id: I3b01d9e258529fbf68ce16266f3358c163dc19e4 Signed-off-by: Dimitrios Markou --- packages/deb/templates/build_debianfiles.py | 2 +- packages/deb/templates/opendaylight.service | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 packages/deb/templates/opendaylight.service diff --git a/packages/deb/templates/build_debianfiles.py b/packages/deb/templates/build_debianfiles.py index f70cb40..03403fd 100755 --- a/packages/deb/templates/build_debianfiles.py +++ b/packages/deb/templates/build_debianfiles.py @@ -17,7 +17,7 @@ except ImportError: debian_files_dynamic = ["changelog", "rules", "control"] debian_files_static = ["compat", "karaf", "opendaylight.install", "opendaylight.postrm", "opendaylight.postinst", - "opendaylight.upstart"] + "opendaylight.upstart", "opendaylight.service"] # Path to the directory that contains this file is assumed to be the # debian templates dir diff --git a/packages/deb/templates/opendaylight.service b/packages/deb/templates/opendaylight.service new file mode 100644 index 0000000..6c84e74 --- /dev/null +++ b/packages/deb/templates/opendaylight.service @@ -0,0 +1,15 @@ +[Unit] +Description=OpenDaylight SDN Controller +Documentation=https://wiki.opendaylight.org/view/Main_Page +Documentation=http://docs.opendaylight.org/ +After=network.service + +[Service] +Type=forking +ExecStart=/opt/opendaylight/bin/start +User=odl +Group=odl +SuccessExitStatus=143 + +[Install] +WantedBy=multi-user.target -- 2.36.6