/etc/cron.daily/ocsinventory-agent is in ocsinventory-agent 2:2.0.5-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 | #!/bin/sh
PROG=/usr/bin/ocsinventory-agent
#RUNDIR=/var/run
#ENABLED_FILE=$RUNDIR/ocsinventory-client-enabled
if [ ! -x "$PROG" ]; then
exit 0
fi
#if [ ! -f "$ENABLED_FILE" ]; then
# perl -e \
# 'print localtime()." => Service disabled: not running the cron job\n"'\
# >> /var/log/ocsinventory-client/ocsinv.log
# exit 0
#fi
$PROG > /dev/null 2>&1
|