Hello,
attaching short examples for cron and logrotate scripts as they work on some
servers maintained by us. Works without systemd too.
1. /etc/cron.daily/dehydrated
#!/bin/sh
dehydrated -c >> /var/log/dehydrated.log
2. /etc/logrotate.d/dehydrated
/var/log/dehydrated.log
{
missingok
yearly
}
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The only substitute for good manners is fast reflexes.