Bug 1057491 - rpmconfigcheck doesn't start at boot
Summary: rpmconfigcheck doesn't start at boot
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Factory
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 23:17 UTC by James Carter
Modified: 2017-09-07 09:07 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Carter 2017-09-06 23:17:15 UTC
This is for rpm-4.13.0.1-5.4.x86_64 on Tumbleweed 2017-09-05,
systemd-233-1.1.x86_64 .

/usr/lib/systemd/system/rpmconfigcheck.service does not run at boot
time.  It is WantedBy default.target, and (on most systems including mine) 
/usr/lib/systemd/system/default.target is a symlink to graphical.target.
Links in /etc/systemd/system/graphical.target.wants are obeyed, but
links in /etc/systemd/system/default.target.wants are ignored.  

Workaround: Copy to /etc/systemd/system/rpmconfigcheck.service and change:
[Install]
WantedBy=graphical.target
WantedBy=multi-user.target

Maybe a better workaround is to make default.target a separate unit that
Requires graphical.target (or multi-user.target, on servers).  I think it's
valuable to make a unit WantedBy default.target versus enumerating all the
toplevel runlevels, when the sysadmin could create a special runlevel on
a special purpose system, that SuSE units would not know about.  

Another issue: the unit lacks RemainAfterExit=true, so my system
integrity script thinks it died, reports it to the sysadmin, and
restarts it.  I don't know if SuSE has a policy about this, but I would
suggest that if a service started at boot is found dead, that should be
considered to be an anomaly that needs to be dealt with.

OpenSuSE "Leap" 42.1 has services systemd-readahead-collect.service and
systemd-readahead-replay.service which are WantedBy default.target and
hence don't start at boot.  But they do have RemainAfterExit=true.