Newer Older
f16725e 3 months ago History
66 lines | 1.171kb
Bogdan Timofte authored 3 months ago
1
# Instalare
2

            
3
## Metoda recomandata
4

            
5
Wrapper-ul `setup.sh` este metoda standard de install si uninstall.
6

            
7
### Instalare locala
8

            
9
```bash
10
sudo ./setup.sh --local
11
```
12

            
13
### Instalare remote
14

            
15
```bash
16
sudo ./setup.sh <node>
17
sudo ./setup.sh --user admin <node>
18
```
19

            
20
## Ce instaleaza
21

            
22
- `/usr/local/sbin/pve-net-hang-watchdog.sh`
23
- `/usr/local/lib/xdev/pve-net-hang-watchdog/uninstall.sh`
24
- `/usr/local/sbin/xdev-pve-net-hang-watchdog-uninstall`
25
- `/etc/default/xdev-pve-net-hang-watchdog`
26
- `/etc/systemd/system/pve-net-hang-watchdog.service`
27
- `/usr/local/share/doc/xdev/pve-net-hang-watchdog/*`
28

            
29
## Activare
30

            
31
Installerul face:
32
- `systemctl daemon-reload`
33
- `systemctl enable --now pve-net-hang-watchdog.service`
34

            
35
Verificare:
36

            
37
```bash
38
sudo systemctl status pve-net-hang-watchdog.service
39
```
40

            
41
## Configurare
42

            
43
Defaults instalate:
44

            
45
```bash
46
sudo editor /etc/default/xdev-pve-net-hang-watchdog
47
```
48

            
49
Parametri suportati:
50
- `WATCH_BRIDGE`
51
- `WATCH_IFACE`
52
- `COOLDOWN_SECONDS`
53
- `HANG_PATTERN`
54

            
55
## Uninstall
56

            
57
```bash
58
sudo ./setup.sh --local --uninstall
59
sudo ./setup.sh --uninstall <node>
60
```
61

            
62
Sau direct pe host:
63

            
64
```bash
65
sudo /usr/local/lib/xdev/pve-net-hang-watchdog/uninstall.sh
66
```