Disable some useless services to make Tizen start faster 76/31476/3
authorcaoxinintel <xinx.cao@intel.com>
Fri, 5 Dec 2014 10:24:13 +0000 (18:24 +0800)
committercaoxinintel <xinx.cao@intel.com>
Wed, 10 Dec 2014 02:53:46 +0000 (10:53 +0800)
These Tizen specific services are not useful in Tizen. However, it still
wastes time as systemd tries to queue and start them. So disabling these
services will save some time during Tizen boot-up.

Also, Tizen specific services are installed by their own related
RPM packages. So it's better to disable them here other than in systemd.

Change-Id: I9b9531c68683b76654b949c3d053e9ac81d21733
Signed-off-by: caoxinintel <xinx.cao@intel.com>
scripts/ivi-adaptation.post

index 142b39e..d947fca 100644 (file)
@@ -14,3 +14,11 @@ useradd -c "System based user" -d /home/app -g users -G app -m -u 5000 -s /bin/s
 # adjust TZ_SYS_DEFAULT_USER to 'app'
 sed -ri 's|^(TZ_SYS_DEFAULT_USER=).*$|\1app|' /etc/tizen-platform.conf
 
+# disable system-server to make Tizen start faster
+# but please remember to delete these link files manually if their rpm packages
+# are re-installed or upgraded in system
+rm -fr /usr/lib/systemd/system/sockets.target.wants/system-server.socket
+rm -fr /usr/lib/systemd/system/multi-user.target.wants/system-server.service
+rm -fr /usr/lib/systemd/system/graphical.target.wants/regpmon.service
+rm -fr /usr/lib/systemd/system/graphical.target.wants/zbooting-done.service
+