#181 Incorrect example in Packaging:SysVInitScript
Closed: Fixed None Opened 11 years ago by salimma.

In the Packaging:SysVInitScript page on the wiki, the example given in the [http://fedoraproject.org/wiki/Packaging:SysVInitScript#Initscripts_in_addition_to_systemd_unit_files Initscripts in addition to systemd unit files] section is incorrect, as the uninstall trigger is given as follows:
{{{
%triggerpostun -n packagename-sysvinit -- packagename < 1.0-2
/sbin/chkconfig --add httpd >/dev/null 2>&1 || :
}}}
That should probably be
{{{
%{_sbindir}/chkconfig --del packagename > /dev/null 2>&1 || :
}}}
i.e. deleting, instead of adding, and not using httpd as the default
example as that might be confusing (and not hard-coding /sbin given
that it's an additional symlink to dereference in F-17+)


Whoops. Should have been %triggerpost, not %triggerpostun, since we need to call the "--add" for sysvinit only.

Login to comment on this ticket.

Metadata