systemd: how to list enabled services

Toshio Kuratomi a.badger at gmail.com
Mon Mar 28 18:38:03 UTC 2011


On Mon, Mar 28, 2011 at 01:47:33PM -0400, Bill Nottingham wrote:
> Ian Pilcher (arequipeno at gmail.com) said: 
> > > According to the wiki, chkconfig should work with systemd.  Doesn't it?
> > > 
> > > http://fedoraproject.org/wiki/Systemd#Does_chkconfig_command_work_with_systemd.3F
> > 
> > Running "chkconfig --list" prints this warning:
> > 
> > Note: This output shows SysV services only and does not include native
> >       systemd services. SysV configuration data might be overriden by native
> >       systemd configuration.
> 
> To be precise, the following commands in chkconfig have systemd integration:
> 
> - on (to enable a service)
> - off (to disable a service)
> - <no command> (to check whether a single passed service is enabled)
> 
Note that these are integrated into systemd but they change the behaviour of
chkconfig.

on and off map to systemctl enable whereas chkconfig would set the service
on and off in certain runlevels.  So they're now more similar to chkconfig
--add.

The <no command> case doesn't check targets like chkconfig does with
runlevels.

People who are scripting with chkconfig are going to need to update their
scripts.

-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/test/attachments/20110328/4640f5d7/attachment.bin 


More information about the test mailing list