systemdで「起動と有効化」(start&enable)を同時に実行する

systemdベースのLinuxでサービスの起動と有効化を実施する場合、例えば以下のように実行します。

systemctl enable docker.service
systemctl start docker.service

RedHat Enterprise Linuxのドキュメントであるブート時のシステムサービス起動の有効化に記載されていますが、enable --nowを指定することで「起動と有効化」を同時に実行することができます。

systemctl enable --now docker