/usr/sbin/yum-updatesd is in yum 3.2.25-1ubuntu2.
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 23 24 25 | #!/usr/bin/python
import sys, os
import optparse
parser = optparse.OptionParser()
parser.add_option("-f", "--no-fork", action="store_true", default=False, dest="nofork")
parser.add_option("-r", "--remote-shutdown", action="store_true", default=False, dest="remoteshutdown")
(options, args) = parser.parse_args()
if not options.nofork:
if os.fork():
sys.exit()
fd = os.open("/dev/null", os.O_RDWR)
os.dup2(fd, 0)
os.dup2(fd, 1)
os.dup2(fd, 2)
os.close(fd)
sys.path.insert(0, '/usr/share/yum-cli')
try:
import yumupd
yumupd.main(options)
except KeyboardInterrupt, e:
print >> sys.stderr, "\n\nExiting on user cancel."
sys.exit(1)
|