docker: add docker document.

This commit is contained in:
Nick Peng
2023-11-01 21:24:02 +08:00
parent 4d69057696
commit e5e5c990c0
7 changed files with 77 additions and 0 deletions

21
systemd/smartdns.service Normal file
View File

@@ -0,0 +1,21 @@
[Unit]
Description=SmartDNS Server
After=network.target
Before=network-online.target
Before=nss-lookup.target
Wants=nss-lookup.target
StartLimitBurst=0
StartLimitIntervalSec=60
[Service]
Type=forking
PIDFile=/run/smartdns.pid
EnvironmentFile=/etc/default/smartdns
ExecStart=/usr/sbin/smartdns -p /run/smartdns.pid $SMART_DNS_OPTS
Restart=always
RestartSec=2
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target
Alias=smartdns.service