Lines Matching full:service

2 # each entry, optionally have a SYSTEMD_SERVICE:[package] that lists the service
3 # files in this package. If this variable isn't set, [package].service is used.
34 for service in ${SYSTEMD_SERVICE_ESCAPED}; do
35 systemctl ${OPTS} enable "$service"
121 def systemd_add_files_and_parse(pkg_systemd, path, service, keys):
123 if systemd_append_file(pkg_systemd, oe.path.join(path, service)):
124 fullpath = oe.path.join(d.getVar("D"), path, service)
125 if service.find('.service') != -1:
126 # for *.service add *@.service
127 service_base = service.replace('.service', '')
128 systemd_add_files_and_parse(pkg_systemd, path, service_base + '@.service', keys)
129 if service.find('.socket') != -1:
130 # for *.socket add *.service and *@.service
131 service_base = service.replace('.socket', '')
132 systemd_add_files_and_parse(pkg_systemd, path, service_base + '.service', keys)
133 systemd_add_files_and_parse(pkg_systemd, path, service_base + '@.service', keys)
145 # Check service-files and call systemd_add_files_and_parse for each entry
155 for service in get_package_var(d, 'SYSTEMD_SERVICE', pkg_systemd).split():
158 # Deal with adding, for example, 'ifplugd@eth0.service' from
159 # 'ifplugd@.service'
161 at = service.find('@')
163 ext = service.rfind('.')
164 base = service[:at] + '@' + service[ext:]
167 if os.path.exists(oe.path.join(d.getVar("D"), path, service)):
176 systemd_add_files_and_parse(pkg_systemd, path_found, service, keys)
178 … bb.fatal("Didn't find service unit '{0}', specified in SYSTEMD_SERVICE:{1}. {2}".format(
179service, pkg_systemd, "Also looked for service unit '{0}'.".format(base) if base is not None else …
185 for service in d.getVar('SYSTEMD_SERVICE:%s' % pkg).split():
186 fd.write("%s %s\n" % (action,service))