LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Add delay to some startup applications (https://www.linuxquestions.org/questions/ubuntu-63/add-delay-to-some-startup-applications-4175590752/)

Fixit7 10-04-2016 12:58 PM

Add delay to some startup applications
 
I want to speed up my startup process by putting a 20 second delay for these.

If I do so, I can shave off over a minute.

However, none are listed in Startup Applications Preference.


Code:

  21.290s udev-configure-printer@-devices-pci0000:00-0000:00:13.2-usb2-2\x2d5.service
        18.094s mysql.service
        16.449s apt-daily.service
        15.094s apache2.service
        14.245s udev-configure-printer@-devices-pci0000:00-0000:00:13.2-usb2-2\x2d4.service


frankbell 10-04-2016 08:33 PM

Because they are processes or daemons, not desktop application, my guess is that their startup is managed by your init system.

I don't know, though, whether Ubuntu has completed the switch from upstart to SystemD.

jmgibson1981 10-05-2016 09:48 AM

yes those are systemd services. Ubuntu went systemd in 15.04 I think.

Fixit7 10-05-2016 12:19 PM

I installed boot up manager and disabled two systemd services. mysql.service and apache2.service

Bootup time is about 30 seconds faster.

Fixit7 10-05-2016 03:14 PM

I would like to disable these and restart them after reboot.
I think I need to use systemctl start the services.

But I can not understand how I need to use it for my case.


All times are GMT -5. The time now is 11:05 PM.