这里 https://wiki.debian.org/Teams/pkg-systemd/Packaging 说:
Users can also install a complete unit file to /etc/systemd/system/foo.service. Systemd then uses it instead of /lib/systemd/systemd/foo.service.
意思是如果开发者没有好好写默认的 ExecStart= 配置 (比如 Varnish ,直接把默认启动命令写在 /lib/systemd/systemd/Varnish.service 里)
用户还可以通过复制完整的 Varnish.service 到 /etc/systemd/system 路径下来实现覆盖, Debian 会读 /etc 下面的配置。
但是实际上 Debian8 systemctl reload daemon 之后读取的依旧是 /lib/systemd/systemd/Varnish.service
这你玛教程写来吃屎啊,稍微一个 upgrade 之后就得手动改三四个 xxx.service.我何苦还用你傻逼 Debian
Users can also install a complete unit file to /etc/systemd/system/foo.service. Systemd then uses it instead of /lib/systemd/systemd/foo.service.
意思是如果开发者没有好好写默认的 ExecStart= 配置 (比如 Varnish ,直接把默认启动命令写在 /lib/systemd/systemd/Varnish.service 里)
用户还可以通过复制完整的 Varnish.service 到 /etc/systemd/system 路径下来实现覆盖, Debian 会读 /etc 下面的配置。
但是实际上 Debian8 systemctl reload daemon 之后读取的依旧是 /lib/systemd/systemd/Varnish.service
这你玛教程写来吃屎啊,稍微一个 upgrade 之后就得手动改三四个 xxx.service.我何苦还用你傻逼 Debian