Re: Systemd unit file implementation questions (ypbind)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 13, 2011 at 08:00:33PM +0200, MichaÅ Piotrowski wrote:
> Hi,
> 
> 2011/4/13 Honza Horak <hhorak@xxxxxxxxxx>:
> > 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: pgp3ku9huBEJF.pgp
Description: PGP signature

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux