feat: add worker install and deploy
Все проверки выполнены успешно
CI / test (push) Successful in 2m24s
Docker / Build and publish worker image (push) Successful in 13m24s
Все проверки выполнены успешно
CI / test (push) Successful in 2m24s
Docker / Build and publish worker image (push) Successful in 13m24s
Этот коммит содержится в:
@@ -1,28 +1,13 @@
|
||||
[Unit]
|
||||
Description=RSMon distributed monitoring worker
|
||||
Documentation=https://rocketgit.ru/rsmon/worker
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=rsmon-worker
|
||||
Group=rsmon-worker
|
||||
Environment=HOME=/var/lib/rsmon-worker
|
||||
Environment=RSMON_WEBAPP_DATA_DIR=/var/lib/rsmon-worker/webapp
|
||||
User=root
|
||||
EnvironmentFile=/etc/rsmon-worker/worker.env
|
||||
WorkingDirectory=/var/lib/rsmon-worker
|
||||
ExecStart=/usr/local/bin/rsmon-worker
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
TimeoutStopSec=20s
|
||||
AmbientCapabilities=CAP_NET_RAW
|
||||
CapabilityBoundingSet=CAP_NET_RAW
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/var/lib/rsmon-worker
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Ссылка в новой задаче
Block a user