Service MOTD
The snippet can be accessed without any authentication.
Authored by
Ken Kyger
Add the server status and recent logs to the login message for a dedicated server.
99-service-banner 595 B
#!/bin/sh
echo "==============================================================================="
echo "MyService Server Service"
echo "==============================================================================="
service my-service status | cat | head -n 10
echo "==============================================================================="
echo "MyService Logs"
echo "==============================================================================="
cat /var/log/syslog | grep my-service | tail -n 15
echo "==============================================================================="
Please register or sign in to comment