I'm sorry if it was answered earlier, but I *really* couldn't find
anything about it.

I have few packages that are installed as part of a larger system on
Debian running on BeagleBone. These packages frequently (for some
strange reason - I'm not the only developer) modify files that go to
the /etc/rsyslog.d/ directory. These files are not part of
configuration, they are copied there by hand in postinstall script
from known source, reason being that which file is copied depends on
external configuration. This works without major problems. What is
problematic is that when these packages are upgraded, they are
upgraded few at a time, sometimes two are upgraded, sometimes four,
sometimes all of them. Because of this each package contains the
following:

systemctl restart rsyslog

in its postinstall script. As this causes rsyslog to be restarted a
few times in a row it sometimes results in rsyslog not functioning.
Thus, my question:

Is there a way to restart rsyslog only once, after all packages are
installed? I hope for something similar to "dh $@ --with-systemd" in
"rules" file (but "dh -l" does not show anything that looks like it
should work). My guess is that it should possible to somehow combine
"dh $@ --with-systemd" to achieve what I want, but I don't even know
where should I start.

If it is of any importance, I use "debuild" to build packages.

Also if this is not the best list, would debian-apt or debian-dpkg be better?

TIA,
-- 
Jędrzej Dudkiewicz

I really hate this damn machine, I wish that they would sell it.
It never does just what I want, but only what I tell it.

Reply via email to