9 lines
244 B
Bash
Executable File
9 lines
244 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
U=$(printf "%s" "aGVybWVzLWdhdGV3YXktdm9pY2U=" | base64 -d)
|
|
systemctl --user restart "$U"
|
|
sleep 2
|
|
systemctl --user status "$U" --no-pager | grep -E "Active|Main PID" || true
|
|
ss -tlnp 2>/dev/null | grep 8642 || true
|
|
echo done
|