將 `/etc/systemd/system`conf 加入 nftables 時,`錯誤設定(原因:單元 nftables.service 有錯誤的單元檔案...`

將 `/etc/systemd/system`conf 加入 nftables 時,`錯誤設定(原因:單元 nftables.service 有錯誤的單元檔案...`

系統是 debian 10,帶有 nftables。
我計劃nftalbes在失敗時自動重啟,腳本如下:

cat << EOF >> /etc/systemd/system/nftables.service.d/override.conf
[Service]
Restart=on-failure
RestartSec=1s
EOF

systemctl daemon-reload

輸出顯示bad-setting

systemctl status nftables.service

nftables.service - nftables
   Loaded: bad-setting (Reason: Unit nftables.service has a bad unit file settin
  Drop-In: /etc/systemd/system/nftables.service.d
           └─override.conf
   Active: active (exited) since Sat 2021-07-24 18:57:51; 1h 13min ago
     Docs: man:nft(8)
           http://wiki.nftables.org
           man:nft(8)
           http://wiki.nftables.org
 Main PID: 2145 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   Memory: 0B
   CGroup: /system.slice/nftables.service

哪裡有問題?

相關內容