bashrc, when restarting a process, only follow the new log entries.
This commit is contained in:
1 parent
38a04fbda1
commit
cea7e03c11
1 file changed
+1
-1
@@ -1245,7 +1245,7 @@
|
|||||||
function restart() {
|
function restart() {
|
||||||
prog="$1"
|
prog="$1"
|
||||||
sudo sv restart $prog
|
sudo sv restart $prog
|
||||||
follow /var/log/$prog/current
|
tail -n 0 -F /var/log/$prog/current
|
||||||
}
|
}
|
||||||
alias reload="restart "
|
alias reload="restart "
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user