- A service has two independent states: active means it runs now, enabled means it starts at boot.
systemctl is-activeandsystemctl is-enabledprint them, andsystemctl statusshows both. start,stopandrestartchange running now,enableanddisablechange autostart, and the--nowoption changes both states at once.- Autostart is a link to the unit in
multi-user.target.wants:enablecreates it anddisableremoves it. - At the start of the lesson cron's autostart was off. The engineer's morning
startgot the service running but did not bring back the boot link, sois-enabledprinteddisabled.
Step 6 of 6 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson