man: runlevel 5 is usually more comprehensive, so use it instead of 3 to detect whether a sysv service is enabled

This commit is contained in:
Lennart Poettering 2011-04-16 02:42:23 +02:00
parent 0b4ebf07bc
commit 63415a2d2b
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ fi</programlisting>
a fragment like the following:</para>
<programlisting>%triggerun -- foobar &lt; 0.47.11-1
if /sbin/chkconfig --level 3 foobar ; then
if /sbin/chkconfig --level 5 foobar ; then
/bin/systemctl --no-reload enable foobar.service foobar.socket >/dev/null 2>&amp;1 || :
fi</programlisting>