Skip to content

/etc/cron.daily/remove_old_sessions should be quiet? #26

@mathieumd

Description

@mathieumd

On installing python-ckan_2.10-jammy_amd64.deb, the cron remove_old_sessions get installed. Since then, I get this daily mail:

/etc/cron.daily/remove_old_sessions:
/usr/bin/find: ‘/tmp/*/session/’: No such file or directory
/usr/bin/find: ‘/tmp/sstore/’: No such file or directory
run-parts: /etc/cron.daily/remove_old_sessions exited with return code 1

I guess it should be silenced, no?

-    ${SUDO} ${FIND_BIN} $dir ${FIND_OPTIONS} -amin +${REMOVE_OLDER_THAN_MINS} -delete
+    ${SUDO} ${FIND_BIN} $dir ${FIND_OPTIONS} -amin +${REMOVE_OLDER_THAN_MINS} -delete >/dev/null 2>&1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions