From bedfbe566d70b34b47b533a4a75841692c4ecbf7 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 16 Oct 2026 09:37:54 -0700 Subject: [PATCH] rc, add shortcut to restart a service then immediately follow its log. --- tasks/general/acct_mgmt/users.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 284bfae..99c0987 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -1241,6 +1241,13 @@ tail -n +1 -F "$@" } alias chase="follow " + function_restart: | + function restart() { + prog="$1" + sudo sv restart $prog + follow /var/log/$prog/current + } + alias reload="restart " - name: General | Account Management | Users | Files | Common Variable ansible.builtin.set_fact: @@ -1332,6 +1339,7 @@ {{ function_reconnect }} {{ function_reset_android_studio }} {{ function_follow }} + {{ function_restart }} - name: General | Account Management | Users | Files | .profile + .xsessionrc ansible.builtin.blockinfile: