Created
January 18, 2024 20:17
-
-
Save pancudaniel7/801d952c251d4f4d272cf19e6d4e4b1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
echo "Reloading systemd daemon..." | |
sudo systemctl daemon-reload | |
echo "Enabling and starting the logrotate timer..." | |
sudo systemctl enable --now log_size_check.timer | |
echo "Checking the status of the timer..." | |
sudo systemctl status log_size_check.timer | |
echo "Logrotate configuration with systemd timer is set up." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment