blob: 9f320d0d5d5bf8551fbb66f6c8e0bc6f13a474e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[Unit]
Description=Mosdns
Documentation=https://irine-sistiana.gitbook.io/mosdns-wiki
After=network.target
[Service]
Type=simple
DynamicUser=yes
ExecStart=/usr/bin/mosdns start -d /etc/mosdns -c config.yaml
TimeoutStopSec=5s
PrivateTmp=true
ProtectSystem=strict
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
Restart=always
RestartSec=10s
[Install]
WantedBy=multi-user.target
|