8 examples for systemctl

{{ score }}
  # enable a service called bro to start automatically (as root)
systemctl enable bro.service

# or (as a sudoer)
sudo systemctl enable bro.service
        
{{ score }}
  # start listening on port 6600 and start mpd (as a normal user) upon a connection
systemctl --user start mpd.socket

# start listening on automatically on user session start
systemctl --user enable mpd.socket
        
{{ score }}
  # Lists all units that systemd currently has active on the system.
systemctl list-units
        
{{ score }}
  # check the status of a service called bro
systemctl status bro.service
        
{{ score }}
  # start a service called bro (run as root)
systemctl start bro.service

# or (as a sudoer)
sudo systemctl start bro.service
        
{{ score }}
  # stop a service called bro (as root)
systemctl stop bro.service

# or (as a sudoer)
sudo systemctl stop bro.service
        
{{ score }}
  # start mpd to run as a normal user
systemctl --user mpd.service
        
{{ score }}
  # Lists all active timers
systemctl list-timers --all