Add missing opendaylight.service template file 23/70823/5
authorDimitrios Markou <mardim@intracom-telecom.com>
Thu, 12 Apr 2018 08:01:32 +0000 (11:01 +0300)
committerDimitrios Markou <mardim@intracom-telecom.com>
Thu, 12 Apr 2018 11:17:46 +0000 (14:17 +0300)
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 <mardim@intracom-telecom.com>
packages/deb/templates/build_debianfiles.py
packages/deb/templates/opendaylight.service [new file with mode: 0644]

index f70cb4085b501262d2c7d0337704db56f266afd3..03403fd08fee812ddfe3e0b045ad48d43bf843c6 100755 (executable)
@@ -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 (file)
index 0000000..6c84e74
--- /dev/null
@@ -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