rc, add shortcut to restart a service then immediately follow its log.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user