Skip to content
Snippets Groups Projects
Commit 34b7be15 authored by Thierry Escande's avatar Thierry Escande
Browse files

openharmony-standard-3.0: Add param systemd service


This service starts the param_service server, used to access the
OpenHarmony param, a kind of registry accessible through the network.

The service requires and starts after the openharmony-preinit systemd
service.

Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>
parent defe6480
No related branches found
No related tags found
1 merge request!70Add systemd units for OpenHarmony 3.0
[Unit]
Description=OpenHarmony Param Service
Requires=openharmony-preinit.service
After=openharmony-preinit.service
[Service]
Type=exec
ExecStartPre=install -m 755 -d /dev/unix/socket
ExecStart=/usr/bin/param_service /system/etc/ohos.para
[Install]
WantedBy=multi-user.target
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
......@@ -1496,6 +1496,13 @@ RDEPENDS:${PN}-hdc += "${PN}-libutils ${PN}-syspara libcrypto"
RDEPENDS:${PN} += "${PN}-hdc"
PACKAGES =+ "${PN}-param-service"
SYSTEMD_PACKAGES += "${PN}-param-service"
SYSTEMD_SERVICE:${PN}-param-service = "param.service"
SRC_URI += "file://param.service"
do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/param.service ${D}${systemd_unitdir}/system/
}
FILES:${PN}-param-service = " \
${bindir}/getparam \
${bindir}/setparam \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment