[Unit]
Description=Blocky DNS
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
User=blocky
Group=blocky
Restart=on-failure
RestartSec=10
WorkingDirectory={{ blocky_install_path }}
ExecStart={{ blocky_install_path }}/blocky --config {{ blocky_config_path }}/config.yaml
AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target