/etc/cron.weekly/xtide is in xtide 2.13.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
# Rotate xtide's xttpd server file if logrotate is not used
set -e
# Only rotate if package is installed
test -f /usr/sbin/xttpd || exit 0
# Only rotate if daemon is actually configured to run.
grep '^PORT' /etc/init.d/xttpd >/dev/null || exit 0
test ! -f /usr/sbin/logrotate || exit 0
if [ -f /var/log/xttpd ]; then
savelog -g adm -m 644 -u root -c 4 /var/log/xttpd > /dev/null
fi
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d xttpd restart
else
/etc/init.d/xttpd restart > /dev/null
fi
|