Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Get nice info on chosen systemd services
- function service-stats {
- ### With pipe systemctl would omit color, so we use script
- script -q -c "systemctl status \
- ssh.service \
- openvpn.service \
- tor.service \
- ejabberd.service \
- nginx.service \
- php5-fpm.service \
- mysql.service \
- grafana-server.service" - \
- | sed "s/^●/\o033\[33m●\o033\[0m/g" \
- | grep --color=no -E "(●)|(^( ){1,}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement