source: ocsinventory-agent/trunk/fuentes/debian/ocsinventory-agent.cron.daily @ 469

Last change on this file since 469 was 468, checked in by mabarracus, 4 years ago

Copyt trusty code

File size: 375 bytes
Line 
1#!/bin/sh
2
3PROG=/usr/bin/ocsinventory-agent
4#RUNDIR=/var/run
5#ENABLED_FILE=$RUNDIR/ocsinventory-client-enabled
6
7if [ ! -x "$PROG" ]; then
8    exit 0
9fi
10
11#if [ ! -f "$ENABLED_FILE" ]; then
12#    perl -e \
13#       'print localtime()." => Service disabled: not running the cron job\n"'\
14#       >> /var/log/ocsinventory-client/ocsinv.log
15#    exit 0
16#fi
17
18$PROG > /dev/null 2>&1
19
Note: See TracBrowser for help on using the repository browser.