Systemd unit file implementation questions (ypbind)

Toshio Kuratomi a.badger at gmail.com
Wed Apr 13 19:09:14 UTC 2011


On Wed, Apr 13, 2011 at 08:00:33PM +0200, Michał Piotrowski wrote:
> Hi,
> 
> 2011/4/13 Honza Horak <hhorak at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110413/00d22403/attachment.bin 


More information about the devel mailing list