mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
IUP is now logging to syslog, ref #8665
This commit is contained in:
parent
8cd62ff81f
commit
24b6106ddd
2 changed files with 4 additions and 4 deletions
|
|
@ -76,7 +76,7 @@ init_iup() {
|
|||
if grep -q "iup" "$CRONPATH" ; then
|
||||
sed -i "/iup/d" $CRONPATH
|
||||
fi
|
||||
echo "$number $starttime * * $interval /sbin/iup > /dev/null 2>&1" >> $CRONPATH
|
||||
echo "$number $starttime * * $interval /sbin/iup -v > /dev/null 2>&1" >> $CRONPATH
|
||||
fsync $CRONPATH
|
||||
/etc/init.d/cron restart
|
||||
fi
|
||||
|
|
@ -91,7 +91,7 @@ start_service() {
|
|||
|
||||
test_default_route
|
||||
if [ "$?" -eq 0 ]; then
|
||||
/sbin/iup &
|
||||
/sbin/iup -v &
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ MAC=${MAC// /}
|
|||
MAC=$(echo $MAC | tr '[a-z]' '[A-Z]')
|
||||
|
||||
v() {
|
||||
[ "$VERBOSE" -ge 1 ] && echo "$@"
|
||||
[ "$VERBOSE" -ge 1 ] && logger -t iup "$@"
|
||||
}
|
||||
|
||||
if [ -f $IUPMD5 ]; then
|
||||
|
|
@ -259,7 +259,7 @@ if [ $configurl ]; then
|
|||
elif [ $iupurl ]; then
|
||||
handle_provisioning iup
|
||||
else
|
||||
echo "No Provisioning Server Found"
|
||||
v "No Provisioning Server Found"
|
||||
exit
|
||||
fi
|
||||
config_load provisioning
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue