[systemd-bugs] [Bug 75104] Drop-in files to override units files does not work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 17 09:25:43 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75104

--- Comment #2 from rfnx.poubelle at gmail.com ---
Yes it works this way for me. In my case, I override the postgresql.service
unit file in /usr/lib/systemd/system with the file I created
/etc/systemd/system/postgresql.service :

cat /etc/systemd/system/postgresql.service

.include /usr/lib/systemd/system/postgresql.service

[Unit]
Before=dovecot.service

[Install]
RequiredBy=dovecot.service


systemctl show -p RequiredBy,After postgresql.service

RequiredBy=dovecot.service uwsgi at emperor.service
After=network.target systemd-journald.socket basic.target system.slice

-----

Did you do "systemctl daemon-reload" to ensure your unit file was read ? You
can also try to disable the unit before creating the file then reenable it to
make sure your file is loaded (you can verify this with "systemctl status unit"
or "systemd-delta")

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140217/29e555df/attachment.html>


More information about the systemd-bugs mailing list