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

openharmony-standard: Run distributedsched as systemd service


Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
parent 538141ec
No related branches found
No related tags found
1 merge request!109Systemd service integration and stability improvements
[Unit]
Description=OpenHarmony Distributed Schedule service
Description=OpenHarmony Distributed Schedule service (SA: 1401)
Requires=samgr.service
After=samgr.service
#Wants=param.service
#After=param.service
# Logging to hilogd, but seems to work without it
Wants=hilogd.service
After=hilogd.service
# Requires SA: 4700
Wants=dsoftbus.service
[Service]
Type=oneshot
ExecStart=/bin/echo "OpenHarmony Distributed Schedule Service"
RemainAfterExit=yes
Type=notify
User=system
Group=system
SupplementaryGroups=shell
LimitNICE=40
ExecStart=/usr/bin/sa_main /system/profile/distributedsched.xml
[Install]
WantedBy=multi-user.target
......@@ -136,17 +136,6 @@ fi
#sa_main /system/profile/dps_service.xml & # SA: 1401 180 3502
#sleep "$STARTUP_CMD_SLEEP"
# trigger: post-fs-data
# "name" : "distributedsched",
# "path" : ["/system/bin/sa_main", "/system/profile/distributedsched.xml"],
# "uid" : "system",
# "gid" : ["system", "shell"]
if systemctl -q is-enabled distributedsched.service; then
echo >/dev/console "Starting OpenHarmony distributedsched service"
su system -c '/system/bin/sa_main /system/profile/distributedsched.xml &' # SA: 1401
sleep "$STARTUP_CMD_SLEEP"
fi
# trigger: boot
# "name" : "distributeddata",
# "path" : ["/system/bin/sa_main","/system/profile/distributeddata.xml"],
......
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