更新版本到2.0
This commit is contained in:
24
dns-server.service
Normal file
24
dns-server.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Monitor Agent (Binary Service)
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/root/dns/start.sh start
|
||||
ExecStop=/root/dns/start.sh stop
|
||||
WorkingDirectory=/root/dns
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
StartLimitInterval=60s
|
||||
StartLimitBurst=5
|
||||
KillSignal=SIGTERM
|
||||
TimeoutStopSec=10
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user