On Tue, Aug 24, 2010 at 01:21:30PM -0400, Bill Nottingham wrote:
Miroslav Lichvar (mlichvar(a)redhat.com) said:
> On Mon, Aug 23, 2010 at 11:06:32PM -0400, Bill Nottingham wrote:
> > SERVICE HANDLING
> > - Running 'chkconfig <foo> <(null)|on|off>' on a service
managed by systemd
> > will return the correct code/perform an appropriate action.
> Also, if chkconfig --add called "systemctl enable" when the sysv
> script is enabled, most of the current scriptlets probably wouldn't
> need any changes. The status of systemd and sysv services would be
> required to stay in sync though.
They're not equivalent.
chkconfig --add does not change the state of a default-enabled service
that the administrator has disabled.
systemctl enable does change the state in this case.
Yes, that's why it would call systemctl enable only if the sysv
service is enabled.