til
til copied to clipboard
systemd with --now
systemctl version 220, enable and disable support a --now switch to start / stop services concurrent with the enabling / disabling.
> systemctl enable --now xxx.service
~
> systemctl enable xxx.service && systemctl start xxx.service
> systemctl disable --now xxx.service
~
> systemctl stop xxx.service && systemctl disable xxx.service