diff --git a/recipes-openharmony/openharmony/files/accountmgr.service b/recipes-openharmony/openharmony/files/accountmgr.service index d10e896d187526f160da308622cdda4e99e10626..8de6abe03b7fa77422c4d57778d1f42f2ff6c2da 100644 --- a/recipes-openharmony/openharmony/files/accountmgr.service +++ b/recipes-openharmony/openharmony/files/accountmgr.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony Account Manager service -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/accountmgr.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony SystemAbilityFramework Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/appspawn.service b/recipes-openharmony/openharmony/files/appspawn.service index 16635e01ff99431b43f97f3feee3c895e35505bf..e299f49cc1b3852f88d878d33fcbaa1c349aca07 100644 --- a/recipes-openharmony/openharmony/files/appspawn.service +++ b/recipes-openharmony/openharmony/files/appspawn.service @@ -1,14 +1,10 @@ [Unit] Description=OpenHarmony Appspawn service -Requires=samgr.service -After=samgr.service [Service] -Type=exec -# Delay execution by 2 secs after samgr.service -ExecStartPre=/bin/sleep 2 -ExecStartPre=mkdir -p /data/app -ExecStart=/usr/bin/appspawn +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Appspawn Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/deviceauth.service b/recipes-openharmony/openharmony/files/deviceauth.service index 09c7d1340449d8bed377026a9da5d5d17dbd13d4..aab97854fa0d40cee3f4fe52a90daf4b4fa643f3 100644 --- a/recipes-openharmony/openharmony/files/deviceauth.service +++ b/recipes-openharmony/openharmony/files/deviceauth.service @@ -1,13 +1,10 @@ [Unit] Description=OpenHarmony Device Authentication daemon -Requires=samgr.service -After=samgr.service [Service] -Type=exec -# Delay execution by 2 secs after samgr.service -ExecStartPre=/bin/sleep 2 -ExecStart=/usr/bin/deviceauth_service +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Device Authentication Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/distributed_data.service b/recipes-openharmony/openharmony/files/distributed_data.service index 5abbc235c8484d6c379c6648da6aa66fe820ee5f..4ce37814c7200ffae678db543e50fb5c3c62378d 100644 --- a/recipes-openharmony/openharmony/files/distributed_data.service +++ b/recipes-openharmony/openharmony/files/distributed_data.service @@ -1,13 +1,10 @@ [Unit] Description=OpenHarmony Distributed Data service -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -CapabilityBoundingSet=CAP_DAC_READ_SEARCH -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/distributeddata.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Distributed Data Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/distributedsched.service b/recipes-openharmony/openharmony/files/distributedsched.service index 3464d2052cd648f84f9e0a191d2cdf812f0b7f7d..578c42b831dd56e5c3f91aa8835a3d62aed6b48f 100644 --- a/recipes-openharmony/openharmony/files/distributedsched.service +++ b/recipes-openharmony/openharmony/files/distributedsched.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony Distributed Schedule service -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/distributedsched.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Distributed Schedule Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/dsoftbus.service b/recipes-openharmony/openharmony/files/dsoftbus.service index 4eb198de8057f8c488c3d9123a9d7a14efe100bd..d9728659e9482d96a54139a2f798e5130d0a8333 100644 --- a/recipes-openharmony/openharmony/files/dsoftbus.service +++ b/recipes-openharmony/openharmony/files/dsoftbus.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony DSoftBus services -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/softbus_server.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony DSoftBus Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/faultloggerd.service b/recipes-openharmony/openharmony/files/faultloggerd.service index e5017bdf622ac16696bfa3feb67a555b699650c6..72d744930ee2d3fb939d61682195741c8cd39853 100644 --- a/recipes-openharmony/openharmony/files/faultloggerd.service +++ b/recipes-openharmony/openharmony/files/faultloggerd.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony FaultLogger daemon -Requires=openharmony-preinit.service -After=openharmony-preinit.service [Service] -Type=exec -ExecStartPre=install -m 775 -d /data/log/faultlog /data/log/faultlog/faultlogger /data/log/faultlog/temp/ -ExecStart=/usr/bin/faultloggerd +Type=oneshot +ExecStart=/bin/echo "OpenHarmony FaultLogger Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/hilogd.service b/recipes-openharmony/openharmony/files/hilogd.service index 657dee967f27639572bfed7a947f9745951fdfd6..06b61ed56cff0dd5215b46320e1547f358e9de94 100644 --- a/recipes-openharmony/openharmony/files/hilogd.service +++ b/recipes-openharmony/openharmony/files/hilogd.service @@ -1,13 +1,10 @@ [Unit] Description=OpenHarmony hilog daemon -Requires=param.service -After=param.service [Service] -Type=exec -ExecStartPre=mkdir -p /dev/unix/socket -ExecStartPre=mkdir -p /data/log/hilog -ExecStart=/usr/bin/hilogd +Type=oneshot +ExecStart=/bin/echo "OpenHarmony hilog Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/huks.service b/recipes-openharmony/openharmony/files/huks.service index 09bec8b995de5b74e50d7c7d7b4eb119698a129d..9c4c39b68c38611e43cc4d49f1740d3b912e8729 100644 --- a/recipes-openharmony/openharmony/files/huks.service +++ b/recipes-openharmony/openharmony/files/huks.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony huks service -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/huks_service.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Huks Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/inputmethod.service b/recipes-openharmony/openharmony/files/inputmethod.service index 5d4ae0a86a4b7e6a32b326ce2d3a9997d47535dc..3e15e3e2b9b32d04762ee5f959b56bcde18311f0 100644 --- a/recipes-openharmony/openharmony/files/inputmethod.service +++ b/recipes-openharmony/openharmony/files/inputmethod.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony input method services -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/inputmethod_service.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Input Method Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/installs.service b/recipes-openharmony/openharmony/files/installs.service index 8de5e16908a3aceaff96f918b597dad0a9b35bee..b47eb4f2ccb1737469db3b82e97dddf5cc3a07c3 100644 --- a/recipes-openharmony/openharmony/files/installs.service +++ b/recipes-openharmony/openharmony/files/installs.service @@ -1,13 +1,10 @@ [Unit] Description=OpenHarmony Installs service -Requires=samgr.service -After=samgr.service [Service] -Type=exec -# Delay execution by 2 secs after samgr.service -ExecStartPre=/bin/sleep 2 -ExecStart=/usr/bin/installs +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Installs Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/param.service b/recipes-openharmony/openharmony/files/param.service index 63b63434277cb905e3900cd788fba83c6a4a473f..aa8b6ce66843d5695e0410a7c57dc0f12d0fd260 100644 --- a/recipes-openharmony/openharmony/files/param.service +++ b/recipes-openharmony/openharmony/files/param.service @@ -1,12 +1,10 @@ [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 +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Param Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/samgr.service b/recipes-openharmony/openharmony/files/samgr.service index 195350f6e1f7b3621806111f48bea210a3c0509d..bb66c394846c8e39f705162f49950b30546ec069 100644 --- a/recipes-openharmony/openharmony/files/samgr.service +++ b/recipes-openharmony/openharmony/files/samgr.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony SystemAbilityFramework service -Requires=param.service -After=param.service [Service] -Type=exec -ExecStartPre=install -m 755 -d /data/sadata_se /data/sadata_se/samgr -ExecStart=/usr/bin/samgr +Type=oneshot +ExecStart=/bin/echo "OpenHarmony SystemAbilityFramework Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/recipes-openharmony/openharmony/files/time.service b/recipes-openharmony/openharmony/files/time.service index 41e94446ef952ef9fce4826818f2ce91fa3c3de1..f87cdf888502e18e3e1c8b40adb0685c42b843c9 100644 --- a/recipes-openharmony/openharmony/files/time.service +++ b/recipes-openharmony/openharmony/files/time.service @@ -1,12 +1,10 @@ [Unit] Description=OpenHarmony Time service -Requires=appspawn.service -After=appspawn.service [Service] -Type=exec -# should run as system:system -ExecStart=/usr/bin/sa_main /system/profile/time_service.xml +Type=oneshot +ExecStart=/bin/echo "OpenHarmony Time Service" +RemainAfterExit=yes [Install] WantedBy=multi-user.target