Skip to content
Snippets Groups Projects
Commit 54e447fd authored by Esben Haabendal's avatar Esben Haabendal
Browse files

openharmony-standard: Make openharmony-preinit live up to it's name

With the removal of all services from the openharmony-preinit script, this is
now a proper oneshot service, and can/must be run before starting the actual
services.

The goal is still to get rid if this script completely.

Anything it does that is actually needed should be moved to the appropriate OH
service unit files.
parent 3c56c762
No related branches found
No related tags found
1 merge request!109Systemd service integration and stability improvements
......@@ -4,9 +4,6 @@
#
# SPDX-License-Identifier: Apache-2.0
# Don't print out kernel messages below warning levels to console
dmesg -n 4
mkdir -p /data/backup
mkdir -p /data/bootchart
mkdir -p /data/cache
......@@ -87,27 +84,5 @@ if [ -c /dev/dri/card0 ]; then
chmod 666 /dev/dri/card0
fi
STARTUP_CMD_SLEEP=4
# Explicitly set default value to silence error message about parameter not being set
setparam persist.ace.trace.enabled 0
# - pre-init stage
# - init stage
# - post-init stage
# - "trigger early-fs",
# - "trigger fs",
# - "trigger post-fs",
# - "trigger late-fs",
# - "trigger post-fs-data",
# - "trigger load_persist_props_action",
# - "trigger firmware_mounts_complete",
# - "trigger early-boot",
# - "trigger boot"
# trigger: not used?
#sa_main /system/profile/dps_service.xml & # SA: 1401 180 3502
#sleep "$STARTUP_CMD_SLEEP"
echo "All OpenHarmony services started" >/dev/console
[Unit]
Description=OpenHarmony pre-init setup
Wants=param.service
After=param.service
Requires=param.service
After=samgr.service
Requires=samgr.service
After=hilogd.service
Requires=hilogd.service
After=huks.service
Requires=huks.service
After=installs.service
Requires=installs.service
After=appspawn.service
Requires=appspawn.service
[Service]
Type=oneshot
......
......@@ -3,6 +3,10 @@ Description=OpenHarmony SystemAbilityFramework service
# Logging to hilogd, but seems to work without it
Wants=hilogd.service
After=hilogd.service
# HACK: this dependency is just to have it openharmony-preinit run before most
# other OH services until we have gotten rid of it completely.
Wants=openharmony-preinit.service
After=openharmony-preinit.service
[Service]
Type=notify
......
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