mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: set ttl to minttl config for custom dns recordings
This commit is contained in:
1 parent
3c50c46eb9
commit
c89d6018cf
9 files changed
+89
-83
No files matched your search
@@ -32,41 +32,3 @@ systemctl start glider@server
|
||||
```
|
||||
|
||||
See [glider@.service](glider%40.service)
|
||||
|
||||
### Open file limit
|
||||
|
||||
#### 1. setup system limit
|
||||
|
||||
vim /etc/security/limits.d/unlimited.conf
|
||||
|
||||
```bash
|
||||
* soft nofile unlimited
|
||||
* hard nofile unlimited
|
||||
* soft nproc unlimited
|
||||
* hard nproc unlimited
|
||||
```
|
||||
|
||||
#### 2. change **systemd** limit
|
||||
|
||||
```bash
|
||||
echo DefaultLimitNOFILE=102400 >> /etc/systemd/system.conf
|
||||
echo DefaultLimitNOFILE=102400 >> /etc/systemd/user.conf
|
||||
```
|
||||
|
||||
#### 3. reexec **systemd**
|
||||
|
||||
```bash
|
||||
systemctl daemon-reexec
|
||||
```
|
||||
|
||||
#### 4. restart glider service
|
||||
|
||||
```bash
|
||||
systemctl restart glider@server
|
||||
```
|
||||
|
||||
#### 5. check the limits of PID
|
||||
|
||||
```bash
|
||||
cat /proc/PID/limits
|
||||
```
|
||||
@@ -6,6 +6,7 @@ After=network.target iptables.service ip6tables.service
|
||||
Type=simple
|
||||
User=nobody
|
||||
Restart=always
|
||||
LimitNOFILE=102400
|
||||
|
||||
# NOTE: change to your glider path
|
||||
ExecStart=/usr/bin/glider -config /etc/glider/%i.conf
|
||||
|
||||
Reference in new issue
Block a user