This script simplifies common systemctl interactions by providing shorter aliases for frequent commands and flags.
You can just add it to a directory in $PATH environment variable, $HOME/.local/bin/ is recommended
sys [options] [command] [args]-h,--helpReturns this message-u,--userOperate at user level-n,--nowApply immediately (with enable/disable)
st,--st,--startStart service(s)rt,--rt,--restartRestart service(s)rd,--rd,--reloadReload service(s)sp,--sp,--stopStop service(s)kl,--kl,--killKill service(s)ss,--ss,--statusStatus service(s)ee,--ee,--enableEnable service(s)de,--de,--disableDisable service(s)dr,--dr,--daemon-reloadDaemon reload systemd
Start a system service:
sys st nginxEnable a system service and start it immediately:
sys -n ee dockerReload a user service:
sys -u rd pw-loudcompdDaemon reload:
sys rd