/usr/bin/landscape-sysinfo is in landscape-common 14.01-0ubuntu3.
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 19 20 21 22 | #! /usr/bin/python
import sys, os
try:
if os.path.dirname(os.path.abspath(sys.argv[0])) == os.path.abspath("scripts"):
sys.path.insert(0, "./")
else:
from landscape.lib.warning import hide_warnings
hide_warnings()
from twisted.internet import reactor
from landscape.sysinfo.deployment import run
except ImportError:
# For some reasons the libraries are not importable for now. We are
# probably during an upgrade procedure, so let's exit, expecting the
# dependencies to be fixed at next run.
sys.exit(2)
if __name__ == "__main__":
run(sys.argv[1:], reactor)
|