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>
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
--- /dev/null
+[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