configuração do servidor VNC

0

qual é o papel da porcentagem na configuração do VNC?

 ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
 ExecStart=/usr/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
 PIDFile=/home/<USER>/.vnc/%H%i.pid
 ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

são as variáveis% i e% H?

    
por naweed 26.09.2018 / 16:56

1 resposta

1

O % indica que este é um especificador (ou, às vezes, "especificador de formato"). Essa é uma maneira comum de arquivos de configuração especificarem um valor que pode variar no tempo de execução. No caso deste arquivo systemd , você pode encontrar o significado em systemd.unit :

Many settings resolve specifiers which may be used to write generic unit files referring to runtime or unit parameters that are replaced when the unit files are loaded. Specifiers must be known and resolvable for the setting to be valid. The following specifiers are understood:

[...]

  • "%H": Host name: The hostname of the running system at the point in time the unit > configuration is loaded.
  • "%i": Instance name: For instantiated units this is the string between the first "@" character and the type suffix. Empty for non-instantiated units.
    
por 26.09.2018 / 17:25