【发布时间】:2020-08-24 22:35:46
【问题描述】:
我正在尝试添加一个服务,以便它在启动时启动但不可能,我收到以下错误
$ sudo systemctl enable firewall.service
Synchronizing state of firewall.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable firewall
update-rc.d: error: firewall Default-Start contains no runlevels, aborting
# /etc/systemd/system/firewall.service
[Unit]
ConditionPathExists=/etc/init.d/firewall
after=network.target
[Service]
ExecStart=/etc/init.d/firewall
[Install]
WantedBy=multi-user.target
【问题讨论】: