On Wed, Apr 13, 2011 at 08:00:33PM +0200, Michał Piotrowski wrote:
> Hi,
> 
> 2011/4/13 Honza Horak <hho...@redhat.com>:
> > Hi,
> >
> > I'm working on systemd unit file for ypbind and found some problems,
> > that I'm not sure about:
> >
> > 1) if I use systemctl enable/disable instead of chkconfig in %post and
> > %preun sections in spec file, rpmlint prints errors:
> > postin-without-chkconfig /etc/rc.d/init.d/ypbind
> > preun-without-chkconfig /etc/rc.d/init.d/ypbind
> > Is this just rpmlint problem or should I change %post and %preun
> > sections somehow?
> >
> > %post and %preun sections in spec file:
> >
> > %post
> > /bin/systemctl enable %{name}.service || :
> >
> > %preun
> > if [ $1 -eq 0 ] ; then
> >     /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
> >     /bin/systemctl disable %{name}.service >/dev/null 2>&1 || :
> > fi
> >
Sounds like you have the /etc/rc.d/init.d/ypbind file in the same package as
the systemd service file.  Change that and this will likely go away.

-Toshio

Attachment: pgp7e583PJttx.pgp
Description: PGP signature

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to