User Tools

Site Tools


управление_сервисами_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
управление_сервисами_в_linux [2025/03/18 06:55]
val [Управление запуском/остановкой]
управление_сервисами_в_linux [2025/04/18 15:37] (current)
val [Управление юнитами Systemd]
Line 161: Line 161:
 $ systemctl -a $ systemctl -a
 $ systemctl list-units $ systemctl list-units
 +$ systemctl --failed
 +$ systemctl reset-failed
  
 centos# find /​usr/​lib/​systemd/​system/​ centos# find /​usr/​lib/​systemd/​system/​
Line 181: Line 183:
 Description=ssh client vpn daemon Description=ssh client vpn daemon
 After=network.target After=network.target
 +#​StartLimitIntervalSec=60
 +#​StartLimitBurst=3
  
 [Service] [Service]
 ExecStart=/​usr/​bin/​ssh -N -R 61000+X:​localhost:​22 -o ServerAliveInterval=5 -o ServerAliveCountMax=1 -o ExitOnForwardFailure=yes userX@gate.isp.un ExecStart=/​usr/​bin/​ssh -N -R 61000+X:​localhost:​22 -o ServerAliveInterval=5 -o ServerAliveCountMax=1 -o ExitOnForwardFailure=yes userX@gate.isp.un
-#​ExecStart=/​usr/​bin/​java -jar /​home/​jenkins/​agent.jar -url http://​server.corp13.un:​8081/​ -secret NNNNNNNNNNNNNNNNNNNN -name gate -workDir "/​home/​jenkins/"​ +###​ExecStart=/​usr/​bin/​java -jar /​home/​jenkins/​agent.jar -url http://​server.corp13.un:​8081/​ -secret NNNNNNNNNNNNNNNNNNNN -name gate -workDir "/​home/​jenkins/"​ 
-#​User=jenkins+###​User=jenkins
 KillMode=process KillMode=process
 Restart=always Restart=always
-RestartSec=42s+RestartSec=5s
  
 [Install] [Install]
управление_сервисами_в_linux.1742270158.txt.gz · Last modified: 2025/03/18 06:55 by val