Re: systemd: how to list enabled services

2011-03-28 Thread Bill Nottingham
Toshio Kuratomi (a.bad...@gmail.com) said: 
> 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.

Not exactly. chkconfig --add doesn't change the state of the service, unless
it hasn't been set up at all.

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

If you pass --levels to chkconfig, it doesn't forward to systemd.

Bill
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-28 Thread Toshio Kuratomi
On Mon, Mar 28, 2011 at 01:47:33PM -0400, Bill Nottingham wrote:
> Ian Pilcher (arequip...@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)
> -  (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  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


pgpQwPc7L21xP.pgp
Description: PGP signature
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: systemd: how to list enabled services

2011-03-28 Thread Bill Nottingham
Ian Pilcher (arequip...@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)
-  (to check whether a single passed service is enabled)

Bill
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-28 Thread Toshio Kuratomi
On Sat, Mar 26, 2011 at 12:06:47PM -0500, Ian Pilcher wrote:
> On 03/25/2011 11:30 PM, Toshio Kuratomi wrote:
> > On Fri, Mar 25, 2011 at 11:05:21PM -0500, Ian Pilcher wrote:
> >>
> >> chkconfig --list | grep :on
> >>
> >> What is the systemd (systemctl equivalent)? 
> > 
> > ls /etc/systemd/system/*.wants/frobozz.service
> > 
> > https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
> > 
> 
> No.  According to the cheatsheet, that is the equivalent of:
> 
> chkconfig frobozz --list
> 
> So my question still stands.
> 
Oops --

ls /etc/systemd/system/*.wants/

I see that further into the thread some people found another command that
seems to do what's needed without resorting to ls on the filesystem.  If
that's the case, then it should be added to the wiki.  Note that I have no
experience with that command so one thing to check is that it matches up
with the output from the "ls" command.  chkconfig --list isn't checking the
currently running services with this command but the services that will be
enabled in any runlevel (roughly a systemd target) should we be switched
into that runlevel.

-Toshio


pgpwbr6oKZTmq.pgp
Description: PGP signature
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: systemd: how to list enabled services

2011-03-27 Thread Ian Pilcher
On 03/27/2011 06:26 AM, Henk Breimer wrote:
> 
> Nobody seems to have found systemadm!
> Does it all
> 

Maybe I'm missing it, but I don't see any way to enable/disable services
in systemadm.

I finally settled on the following to list the status of all services:

#!/bin/bash

for SERVICE in `systemctl -t service --full --all list-units | awk '{
print $1 }'`; do
echo -n "$SERVICE:  "
if systemctl is-enabled $SERVICE; then
echo ENABLED
else
echo disabled
fi
done 2>/dev/null

-- 

Ian Pilcher arequip...@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-27 Thread Henk Breimer
On Sat, 26 Mar 2011 13:40:00 -0400
Scott Robbins  wrote:

> On Sat, Mar 26, 2011 at 12:06:47PM -0500, Ian Pilcher wrote:
> 
> 
> > > 
> > > ls /etc/systemd/system/*.wants/frobozz.service
> > > 
> > > https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
> > > 
> > 
> > No.  According to the cheatsheet, that is the equivalent of:
> > 
> > chkconfig frobozz --list
> 

Nobody seems to have found systemadm!
Does it all

regards
Henk
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Ian Pilcher
On 03/26/2011 12:18 PM, Clyde E. Kunkel wrote:
> 
> systemctl list-units | grep active | more
> 
> 

"systemctl -t service [--full] list-units " seems to actually get
closest.
-- 

Ian Pilcher arequip...@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Scott Robbins
On Sat, Mar 26, 2011 at 12:06:47PM -0500, Ian Pilcher wrote:


> > 
> > ls /etc/systemd/system/*.wants/frobozz.service
> > 
> > https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
> > 
> 
> No.  According to the cheatsheet, that is the equivalent of:
> 
> chkconfig frobozz --list

I see, thanks for that link.  I suspect it will become increasingly
important. 

Hopefully, it will be far more robust by the time it gets to RH. 



-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Cordelia: What is stalking nowadays, like, the third most
popular sport among men?
Angel: Fourth, after luge
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Clyde E. Kunkel
On 03/26/2011 01:06 PM, Ian Pilcher wrote:
> On 03/25/2011 11:30 PM, Toshio Kuratomi wrote:
>> On Fri, Mar 25, 2011 at 11:05:21PM -0500, Ian Pilcher wrote:
>>>
>>>  chkconfig --list | grep :on
>>>
>>> What is the systemd (systemctl equivalent)?
>>
>> ls /etc/systemd/system/*.wants/frobozz.service
>>
>> https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
>>
>
> No.  According to the cheatsheet, that is the equivalent of:
>
>  chkconfig frobozz --list
>
> So my question still stands.
>

systemctl list-units | grep active | more


-- 
Regards,
OldFart

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Ian Pilcher
On 03/25/2011 11:30 PM, Toshio Kuratomi wrote:
> On Fri, Mar 25, 2011 at 11:05:21PM -0500, Ian Pilcher wrote:
>>
>> chkconfig --list | grep :on
>>
>> What is the systemd (systemctl equivalent)? 
> 
> ls /etc/systemd/system/*.wants/frobozz.service
> 
> https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
> 

No.  According to the cheatsheet, that is the equivalent of:

chkconfig frobozz --list

So my question still stands.

-- 

Ian Pilcher arequip...@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Ian Pilcher
On 03/26/2011 09:12 AM, Scott Robbins wrote:
> 
> 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.

-- 

Ian Pilcher arequip...@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Scott Robbins
On Sat, Mar 26, 2011 at 10:09:53AM -0400, Clyde E. Kunkel wrote:
> On 03/26/2011 12:05 AM, Ian Pilcher wrote:
> > I'm in the habit of running
> >
> >  chkconfig --list | grep :on
> >
> > to list all of the services that are enabled on my system (usually right
> > after an installation, so I can disable all of the stuff that I don't
> > need).
> >
> > What is the systemd (systemctl equivalent)?

According to the wiki, chkconfig should work with systemd.  Doesn't it?

http://fedoraproject.org/wiki/Systemd#Does_chkconfig_command_work_with_systemd.3F

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Buffy: You know, for someone who teaches human behavior, you 
might try showing some. 
Professor Walsh:It's not my job to coddle my students. 
Buffy: You're right. A human being in pain has nothing to do with 
your job. (leaves) 
Professor Walsh: I like her. 
Riley: Really? You don't think she's a little peculiar? 

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Clyde E. Kunkel
On 03/26/2011 12:05 AM, Ian Pilcher wrote:
> I'm in the habit of running
>
>  chkconfig --list | grep :on
>
> to list all of the services that are enabled on my system (usually right
> after an installation, so I can disable all of the stuff that I don't
> need).
>
> What is the systemd (systemctl equivalent)?
>
> Thanks!
>

systemctl --help will provide you with a list of commands

-- 
Regards,
OldFart

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-26 Thread Dennis Jacobfeuerborn
On 03/26/2011 05:30 AM, Toshio Kuratomi wrote:
> On Fri, Mar 25, 2011 at 11:05:21PM -0500, Ian Pilcher wrote:
>> I'm in the habit of running
>>
>>  chkconfig --list | grep :on
>>
>> to list all of the services that are enabled on my system (usually right
>> after an installation, so I can disable all of the stuff that I don't
>> need).
>>
>> What is the systemd (systemctl equivalent)?
>
> ls /etc/systemd/system/*.wants/frobozz.service
>
> https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
>
> Note that because systemd uses dependencies to tell what needs to be
> started, some services may start that aren't listed there if one of the
> listed services depends on it.

Note that I'm still running F14 and haven't played with systemd yet but 
given that this is one of the more obvious use-cases shouldn't there be 
something like "systemctl --list-enabled" that lists the enabled services 
and their dependencies?

Regards,
   Dennis
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: systemd: how to list enabled services

2011-03-25 Thread Toshio Kuratomi
On Fri, Mar 25, 2011 at 11:05:21PM -0500, Ian Pilcher wrote:
> I'm in the habit of running
> 
> chkconfig --list | grep :on
> 
> to list all of the services that are enabled on my system (usually right
> after an installation, so I can disable all of the stuff that I don't
> need).
> 
> What is the systemd (systemctl equivalent)? 

ls /etc/systemd/system/*.wants/frobozz.service

https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

Note that because systemd uses dependencies to tell what needs to be
started, some services may start that aren't listed there if one of the
listed services depends on it.

-Toshio


pgpkqT6oHCVi6.pgp
Description: PGP signature
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

systemd: how to list enabled services

2011-03-25 Thread Ian Pilcher
I'm in the habit of running

chkconfig --list | grep :on

to list all of the services that are enabled on my system (usually right
after an installation, so I can disable all of the stuff that I don't
need).

What is the systemd (systemctl equivalent)?

Thanks!

-- 

Ian Pilcher arequip...@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test