User Tools

Site Tools


ubuntu:services:enable_a_service_at_boot

Ubuntu - Services - Enable a service at boot

Using systemctl

To start a service at boot, use the enable command:

sudo systemctl enable application.service

This will create a symbolic link from the system’s copy of the service file (usually in /lib/systemd/system or /etc/systemd/system) into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants).


Using invoke-rc.d

update-rc.d service_name defaults

Using System V

With sysv-rc-conf or sysvconfig

sysv-rc-conf service_name on
ubuntu/services/enable_a_service_at_boot.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki