/usr/share/rhn/actions/systemid.py is in rhn-client-tools 1.8.9-3.
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 26 27 28 | #!/usr/bin/python
#
# Copyright (c) 1999-2002 Red Hat, Inc. Distributed under GPLv2.
#
# Author: Adrian Likins <alikins@redhat.com>
import time
# mark this module as acceptable
__rhnexport__ = [
'disable',
]
def disable(messageText, cache_only=None):
"""We have been told that we should disable the systemid"""
if cache_only:
return (0, "no-ops for caching", {})
disableFilePath = "/etc/sysconfig/rhn/disable"
# open and shut off
fd = open(disableFilePath, "w")
fd.write("Disable lock created on %s. RHN Server Message:\n\n%s\n" % (
time.ctime(time.time()), messageText))
fd.close()
# done if we survived this long
return(0, "systemId disable lock file has been writen", {})
|