Revision 227647ac lib/constants.py

b/lib/constants.py
99 99
ETC_HOSTS = "/etc/hosts"
100 100
DEFAULT_FILE_STORAGE_DIR = _autoconf.FILE_STORAGE_DIR
101 101

  
102
# Quoting unix(7) on Linux:
103
#   Linux also supports an abstract namespace which is independent of the file
104
#   system. [...] If sun_path starts with a null byte ('\0'), then it refers to
105
#   the abstract namespace maintained by the Unix protocol module. The socket's
106
#   address in this namespace is given by the rest of the bytes in sun_path.
107
#
108
# By using this Linux-specific way we don't have to care about removing the
109
# socket file when quitting or starting (after an unclean shutdown).
110
#
111
# Sample output for "netstat -nlp":
112
#   unix 2 [ ACC ] STREAM LISTENING 247919 1234/python @ganeti-master
113
MASTER_SOCKET = "\0ganeti-master"
102
MASTER_SOCKET = SOCKET_DIR + "/ganeti-master"
114 103

  
115 104
# PID files
116 105
MASTERD_PID = "ganeti-masterd"

Also available in: Unified diff