chore: archive mac mini automation baseline
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
V=$(printf "%s" "aGVybWVzLWdhdGV3YXktdm9pY2U=" | base64 -d)
|
||||
K=$(printf "%s" "aGVybWVzLWdhdGV3YXkta2lkcw==" | base64 -d)
|
||||
echo "restarting $V and $K"
|
||||
systemctl --user restart "$V" "$K"
|
||||
sleep 3
|
||||
systemctl --user status "$V" --no-pager | grep -E "Active|Main PID" || true
|
||||
systemctl --user status "$K" --no-pager | grep -E "Active|Main PID" || true
|
||||
ss -tlnp 2>/dev/null | grep -E "8642|8643" | head -20
|
||||
echo done
|
||||
Reference in New Issue
Block a user