mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
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:
parent
0b4ebf07bc
commit
63415a2d2b
|
@ -869,7 +869,7 @@ fi</programlisting>
|
|||
a fragment like the following:</para>
|
||||
|
||||
<programlisting>%triggerun -- foobar < 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>&1 || :
|
||||
fi</programlisting>
|
||||
|
||||
|
|
Loading…
Reference in a new issue