summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-06-11 16:20:48 +0200
committerRemi Collet <fedora@famillecollet.com>2011-06-11 16:20:48 +0200
commit344d603adfb9b5e8ab39d0566090a5bb6e986133 (patch)
tree24a74e15a275ab3d877db9d87b75da1d2f8916af
parent337c63194f76bb093480a416ae0d2bb0883ca681 (diff)
fix service for systemd
-rwxr-xr-xfusioninventory-agent.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/fusioninventory-agent.init b/fusioninventory-agent.init
index c2467fd..3f163b1 100755
--- a/fusioninventory-agent.init
+++ b/fusioninventory-agent.init
@@ -65,10 +65,10 @@ do_start()
daemon $prog --logfile-maxsize=999 --logfile=$logfile $FUSINVOPT --daemon $OPTS 2>/dev/null
RETVAL=$?
echo
+ [ $RETVAL -eq 0 ] && touch $lockfile
else
- RETVAL=1
+ RETVAL=0
fi
- [ $RETVAL -eq 0 ] && touch $lockfile
}
#