最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How do I override a systemd unit Conflicts= or ExecStart= for a templated unit file - Stack Overflow

programmeradmin2浏览0评论

Take the initial unit (which is a failure unit for another service) /usr/lib/systemd/system/[email protected]

[Unit]
Description=Failed Unit for %i

Conflicts=some-unit.target

[Service]
Type=Oneshot

ExecStart=/usr/bin/echo "Something"

I want to override the conflicts param for one instance type

I have tried something like this....

/usr/lib/systemd/system/[email protected]/override.conf

[Unit]
Conflicts=

But systemctl show [email protected] still shows

Conflicts=shutdown.target some-unit.target

I suspect this has something to do with the template nature, but I cannot find any references or articles to what the exact nature of this is, or how to handle it.

I have the same thing happening with some overrides with ExecStart as well.

发布评论

评论列表(0)

  1. 暂无评论