File: ocsinventory-agent.cron.daily

package info (click to toggle)
ocsinventory-agent 2%3A2.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,224 kB
  • sloc: perl: 27,179; xml: 773; objc: 490; ansic: 333; sh: 316; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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