Re: SystemD - F-16

2011-11-14 Thread Andre Costa
On Sun, Nov 13, 2011 at 16:51, Michael Schwendt mschwe...@gmail.com wrote:

 On Sun, 13 Nov 2011 13:05:47 -0200, AC (Andre) wrote:

  Maybe if there
  was a similar documentation explaining to old dogs (myself included)
 how
  to do SysV tasks the systemd way, transition would be easier. I know the
  information is probably already on all the manpages somehow, but I'm
  talking explicitly about something along the if you wanna do this
  sysv-cmd, use this systemd-cmd way.

 http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
 --
 users mailing list
 users@lists.fedoraproject.org
 To unsubscribe or change subscription options:
 https://admin.fedoraproject.org/mailman/listinfo/users
 Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Nice, that's exactly what I was talking about =) Thks for the pointer.

Regards,

Andre
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread T.C. Hollingsworth
On Sat, Nov 12, 2011 at 10:10 PM, Tom Horsley horsley1...@gmail.com wrote:
 On Sun, 13 Nov 2011 00:00:13 -0500
 Fedora User wrote:

 The system does seem to
 boot faster but this is really arcane compared to sysV which seemed
 very straightforward.

 Arcane is the word. One big problem is the complete
 lack of anything like chkconfig --list for systemd
 services (it would be nice if chkconfig just figured
 out how to provide the info and included it).

Unfortunately, chkconfig itself doesn't translate to systemd well.
However, this thread got me thinking that there is a need for a
chkconfig-like tool for systemd.  So, I wrote one:

http://tchol.org/chksystemd/

It uses systemd's DBus interface to provide an equivalent to
chkconfig --list, and manages the symlinks in /etc/systemd/ much
like chkconfig managed the symlinks in /etc/rc.d.  It replicates some
functionality that systemctl provides (in fact, it calls systemctl in
those instances), but does several things systemctl does not.

It does not implement the exact same syntax as chkconfig, for instance
it replaces --level with --target.  But, with its slight
deviations, it provides most of the functionality of chkconfig in a
way that fully maps to systemd.

Hopefully some will find it helpful.

-T.C.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


chksystemd Re: SystemD - F-16

2011-11-13 Thread Frank Murphy
On 13/11/11 11:12, T.C. Hollingsworth wrote:

 -T.C.

404 on the rpm


-- 
Regards,

Frank Murphy
UTF_8 Encoded
Friend of fedoraproject.org
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread Ed Greshko
On 11/13/2011 07:22 PM, Frank Murphy wrote:
 On 13/11/11 11:12, T.C. Hollingsworth wrote:

 -T.C.
 404 on the rpm


 Fine from here...

-- 
Even if you do learn to speak correct English, whom are you going to
speak it to? -- Clarence Darrow
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread Ed Greshko
On 11/13/2011 07:29 PM, Ed Greshko wrote:
 On 11/13/2011 07:22 PM, Frank Murphy wrote:
 On 13/11/11 11:12, T.C. Hollingsworth wrote:

 -T.C.
 404 on the rpm


  Fine from here...


Oooopss wrong link  NOT fine from here...

-- 
Even if you do learn to speak correct English, whom are you going to
speak it to? -- Clarence Darrow
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread T.C. Hollingsworth
On Sun, Nov 13, 2011 at 4:22 AM, Frank Murphy frankl...@gmail.com wrote:
 404 on the rpm

Fixed.  Sorry about that!

-T.C.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread mike cloaked
On Sun, Nov 13, 2011 at 11:12 AM, T.C. Hollingsworth
tchollingswo...@gmail.com wrote:
 On Sat, Nov 12, 2011 at 10:10 PM, Tom Horsley horsley1...@gmail.com wrote:
 On Sun, 13 Nov 2011 00:00:13 -0500
 Fedora User wrote:

 The system does seem to
 boot faster but this is really arcane compared to sysV which seemed
 very straightforward.

 Arcane is the word. One big problem is the complete
 lack of anything like chkconfig --list for systemd
 services (it would be nice if chkconfig just figured
 out how to provide the info and included it).

 Unfortunately, chkconfig itself doesn't translate to systemd well.
 However, this thread got me thinking that there is a need for a
 chkconfig-like tool for systemd.  So, I wrote one:

 http://tchol.org/chksystemd/

 It uses systemd's DBus interface to provide an equivalent to
 chkconfig --list, and manages the symlinks in /etc/systemd/ much
 like chkconfig managed the symlinks in /etc/rc.d.  It replicates some
 functionality that systemctl provides (in fact, it calls systemctl in
 those instances), but does several things systemctl does not.

 It does not implement the exact same syntax as chkconfig, for instance
 it replaces --level with --target.  But, with its slight
 deviations, it provides most of the functionality of chkconfig in a
 way that fully maps to systemd.

 Hopefully some will find it helpful.

Whilst we are on the subject can someone tell me what the systemd
equivalent is for the command service iptables save ?

Thanks

-- 
mike c
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread suvayu ali
Hi,

On Sun, Nov 13, 2011 at 12:34, T.C. Hollingsworth
tchollingswo...@gmail.com wrote:
 On Sun, Nov 13, 2011 at 4:22 AM, Frank Murphy frankl...@gmail.com wrote:
 404 on the rpm

 Fixed.  Sorry about that!


I can't seem to pipe the output or redirect it to a file. Try either
of those gives me this backtrace:

graphical.target
Traceback (most recent call last):
  File /usr/bin/chksystemd, line 241, in module
main()
  File /usr/bin/chksystemd, line 92, in main
list_deps(args.unit, targets)
  File /usr/bin/chksystemd, line 180, in list_deps
print_deps(target, False)
  File /usr/bin/chksystemd, line 203, in print_deps
print_dep(prefix, unit, True, by)
  File /usr/bin/chksystemd, line 210, in print_dep
print_deps(unit, by, prefix=''.join(['│ ', prefix]), required=required)
  File /usr/bin/chksystemd, line 195, in print_deps
print prefix,
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2502' in
position 0: ordinal not in range(128)


 -T.C.

Hope this helps.

PS: I think this is a very useful utility, maybe its worthwhile
submitting this for inclusion?

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Tom Horsley
On Sat, 12 Nov 2011 22:15:00 -0700
Kevin Fenzi wrote:

 systemctl list-unit-files
 
 give you any of what you are looking for?

That tells me what units are available, not
what units are enabled to be started at boot.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Tom Horsley
On Sun, 13 Nov 2011 12:41:14 +
mike cloaked wrote:

 Whilst we are on the subject can someone tell me what the systemd
 equivalent is for the command service iptables save ?

I always just run the iptables-save program directly and
redirect output to /etc/sysconfig/iptables if you really
want to save the state permanently and not just look at
it (I'm pretty sure that is all the rc script did with
the save command).
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread T.C. Hollingsworth
On Sun, Nov 13, 2011 at 6:46 AM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 I can't seem to pipe the output or redirect it to a file. Try either
 of those gives me this backtrace:

 graphical.target
 Traceback (most recent call last):
  File /usr/bin/chksystemd, line 241, in module
    main()
  File /usr/bin/chksystemd, line 92, in main
    list_deps(args.unit, targets)
  File /usr/bin/chksystemd, line 180, in list_deps
    print_deps(target, False)
  File /usr/bin/chksystemd, line 203, in print_deps
    print_dep(prefix, unit, True, by)
  File /usr/bin/chksystemd, line 210, in print_dep
    print_deps(unit, by, prefix=''.join(['│ ', prefix]), required=required)
  File /usr/bin/chksystemd, line 195, in print_deps
    print prefix,
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u2502' in
 position 0: ordinal not in range(128)

Yay for unicode bugs!  Fixed in chksystemd-2 (along with a brown paper
bag bug that made the reset action not work), which is now available
at http://tchol.org/chksystemd/


 Hope this helps.

 PS: I think this is a very useful utility, maybe its worthwhile
 submitting this for inclusion?

I definitely will once it's got some more testing.

-T.C.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Rahul Sundaram
On 11/13/2011 04:42 PM, T.C. Hollingsworth wrote:

 
 Unfortunately, chkconfig itself doesn't translate to systemd well.
 However, this thread got me thinking that there is a need for a
 chkconfig-like tool for systemd.  So, I wrote one:
 
 http://tchol.org/chksystemd/

Perhaps patches to systemctl to implement additional command line
arguments would be more useful than teaching everyone to use two
different tools.

Rahul
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread mike cloaked
On Sun, Nov 13, 2011 at 2:46 PM, Rahul Sundaram methe...@gmail.com wrote:
 On 11/13/2011 04:42 PM, T.C. Hollingsworth wrote:


 Unfortunately, chkconfig itself doesn't translate to systemd well.
 However, this thread got me thinking that there is a need for a
 chkconfig-like tool for systemd.  So, I wrote one:

 http://tchol.org/chksystemd/

 Perhaps patches to systemctl to implement additional command line
 arguments would be more useful than teaching everyone to use two
 different tools.

Yes - if systemctl is ultimately the only daemon control command then
everything that is needed should be included, once all sysV stuff has
gone from =f17?

I would like to see something in systemctl to achieve what used to be
done with service iptables save - as another poster already said one
can manually do:
iptables-save  /etc/sysconfig/iptables

Most daemon controls were done with either of service or chkconfig
- would be nice to have it all within systemctl.

So why not just have this from systemctl using something like
systemctl save iptables.service ?

-- 
mike c
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Andre Costa
On Sun, Nov 13, 2011 at 12:22, Tom Horsley horsley1...@gmail.com wrote:

 On Sun, 13 Nov 2011 12:41:14 +
 mike cloaked wrote:

  Whilst we are on the subject can someone tell me what the systemd
  equivalent is for the command service iptables save ?

 I always just run the iptables-save program directly and
 redirect output to /etc/sysconfig/iptables if you really
 want to save the state permanently and not just look at
 it (I'm pretty sure that is all the rc script did with
 the save command).
 --
 users mailing list
 users@lists.fedoraproject.org
 To unsubscribe or change subscription options:
 https://admin.fedoraproject.org/mailman/listinfo/users
 Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


I've always been a RedHat/Fedora user, but I have to use Ubuntu at work. At
first I was completely lost with apt-get, but then someone pointed me to
this page [
https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora]
and it made a whole lot of difference to me as a newcomer. Maybe if there
was a similar documentation explaining to old dogs (myself included) how
to do SysV tasks the systemd way, transition would be easier. I know the
information is probably already on all the manpages somehow, but I'm
talking explicitly about something along the if you wanna do this
sysv-cmd, use this systemd-cmd way.

Just my $0.02.

Regards,

Andre
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread stan
On Sun, 13 Nov 2011 09:17:41 -0500
Tom Horsley horsley1...@gmail.com wrote:

 On Sat, 12 Nov 2011 22:15:00 -0700
 Kevin Fenzi wrote:
 
  systemctl list-unit-files
  
  give you any of what you are looking for?
 
 That tells me what units are available, not
 what units are enabled to be started at boot.

How about 
systemctl -a -t service | less
and if you want only active services
systemctl -a -t service | grep -e  active  | less
or inactive similarly
systemctl -a -t service | grep -e  inactive  | less
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread suvayu ali
On Sun, Nov 13, 2011 at 15:22, T.C. Hollingsworth
tchollingswo...@gmail.com wrote:
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u2502' in
 position 0: ordinal not in range(128)

 Yay for unicode bugs!  Fixed in chksystemd-2 (along with a brown paper
 bag bug that made the reset action not work), which is now available
 at http://tchol.org/chksystemd/


Great, works nicely now.


 Hope this helps.

 PS: I think this is a very useful utility, maybe its worthwhile
 submitting this for inclusion?

 I definitely will once it's got some more testing.

Looking forward to it. Thanks a lot for this nice contribution. :)

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Tom Horsley
On Sun, 13 Nov 2011 08:34:59 -0700
stan wrote:

 How about 
 systemctl -a -t service | less
 and if you want only active services
 systemctl -a -t service | grep -e  active  | less
 or inactive similarly
 systemctl -a -t service | grep -e  inactive  | less

Still not the same, a service might be set to start
at boot and fail for some reason and no longer be
active, but it is still configured to start at boot.

I suspect the new tool pointed at in another branch of
this thread is what I'll want to use, but I haven't
gotten a chance to try it yet.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Kevin Fenzi
On Sun, 13 Nov 2011 09:17:41 -0500
Tom Horsley horsley1...@gmail.com wrote:

 On Sat, 12 Nov 2011 22:15:00 -0700
 Kevin Fenzi wrote:
 
  systemctl list-unit-files
  
  give you any of what you are looking for?
 
 That tells me what units are available, not
 what units are enabled to be started at boot.

sorry, I meant: 

systemctl list-unit-files | grep enabled

kevin


signature.asc
Description: PGP signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Fedora User
On Sun, 13 Nov 2011 08:34:59 -0700
stan gr...@q.com wrote:

 On Sun, 13 Nov 2011 09:17:41 -0500
 Tom Horsley horsley1...@gmail.com wrote:
 
  On Sat, 12 Nov 2011 22:15:00 -0700
  Kevin Fenzi wrote:
  
   systemctl list-unit-files
   
   give you any of what you are looking for?
  
  That tells me what units are available, not
  what units are enabled to be started at boot.
 
 How about 
 systemctl -a -t service | less
 and if you want only active services
 systemctl -a -t service | grep -e  active  | less
 or inactive similarly
 systemctl -a -t service | grep -e  inactive  | less

SystemD fixes what weren't broke ;-) Seriously. It's easier to
eliminate it all and just script everything in rc.local. The increasing
and pointless esoterica is making it impossible for people to migrate
to Fedora and that is very unfortunate. Presumably, a new install still
runs setup which includes services -- but only SysV?
system-config-services no longer does anything. 

An old Linux value used to be that simple and straightforward is
elegant. This is inelegant.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Tom Horsley
On Sun, 13 Nov 2011 09:35:01 -0700
Kevin Fenzi wrote:

 sorry, I meant: 
 
 systemctl list-unit-files | grep enabled
 
 kevin

That almost does it, but there is still something
slightly different:

[root@zooty ~]# ls /etc/systemd/system/*.wants/*.service | wc -l
31
[root@zooty ~]# systemctl list-unit-files | grep enabled | wc -l
38

Looks like the extra 7 are things that aren't named .service.

So I think this does what I want:

systemctl list-unit-files | grep enabled | fgrep .service

Now I just need to find the option that makes it not truncate
long service names with ... and I'll be all set :-).
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Rahul Sundaram
On 11/13/2011 10:07 PM, Fedora User wrote:

 SystemD fixes what weren't broke ;-) Seriously. It's easier to
 eliminate it all and just script everything in rc.local.

Not for any serious distribution developer or system administrator and
btw, it is spelled systemd

Rahul
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Michael Schwendt
On Sun, 13 Nov 2011 14:55:55 +, MC (mike) wrote:

 I would like to see something in systemctl to achieve what used to be
 done with service iptables save - as another poster already said one
 can manually do:
 iptables-save  /etc/sysconfig/iptables
 
 Most daemon controls were done with either of service or chkconfig
 - would be nice to have it all within systemctl.
 
 So why not just have this from systemctl using something like
 systemctl save iptables.service ?

service iptables save has been a bad idea.
It's save action has not even been part of LSB.
iptables is not a daemon, at most a one-shot initscript.

IMO, it's much better to decouple iptables-save and systemctl.
systemctl is not the proper interface to use for modifying the
iptables configuration. Neither at run-time nor in /etc/sysconfig.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-13 Thread Michael Schwendt
On Sun, 13 Nov 2011 13:05:47 -0200, AC (Andre) wrote:

 Maybe if there
 was a similar documentation explaining to old dogs (myself included) how
 to do SysV tasks the systemd way, transition would be easier. I know the
 information is probably already on all the manpages somehow, but I'm
 talking explicitly about something along the if you wanna do this
 sysv-cmd, use this systemd-cmd way.

http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: chksystemd Re: SystemD - F-16

2011-11-13 Thread Marko Vojinovic
On Sunday 13 November 2011 07:22:51 T.C. Hollingsworth wrote:
 Yay for unicode bugs!  Fixed in chksystemd-2 (along with a brown paper
 bag bug that made the reset action not work), which is now available
 at http://tchol.org/chksystemd/
 
  Hope this helps.
  
  PS: I think this is a very useful utility, maybe its worthwhile
  submitting this for inclusion?
 
 I definitely will once it's got some more testing.

I also find this *very* useful. Until systemctl starts providing this natively, 
it's a good thing to have around.

Great work, thanks! :-)

Best, :-)
Marko


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-12 Thread Genes MailLists
On 11/11/2011 09:27 PM, T.C. Hollingsworth wrote:
\
 
 systemd replaces numerical runlevels with named targets.  Apart from
 that, it works very similar to how chkconfig works under the hood.
 chkconfig --level 3 squid off essentially just does rm
 /etc/rc3.d/squid.  chkconfig --level 5 squid on just translates to
 ln -sf /etc/init.d/squid /etc/rc5.d/.  The systemd way is very
 similar:
 
 rm -f /etc/systemd/system/multi-user.target.wants/squid.service
 ln -sf /lib/systemd/system/squid.service
 /etc/systemd/system/graphical.target.wants/
 systemctl daemon-reload
 

 -T.C.

 Perhaps there is a systemctl option to remove and reset the soft link?
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-12 Thread T.C. Hollingsworth
On Sat, Nov 12, 2011 at 12:55 PM, Genes MailLists li...@sapience.com wrote:
 On 11/11/2011 09:27 PM, T.C. Hollingsworth wrote:
 \

 systemd replaces numerical runlevels with named targets.  Apart from
 that, it works very similar to how chkconfig works under the hood.
 chkconfig --level 3 squid off essentially just does rm
 /etc/rc3.d/squid.  chkconfig --level 5 squid on just translates to
 ln -sf /etc/init.d/squid /etc/rc5.d/.  The systemd way is very
 similar:

 rm -f /etc/systemd/system/multi-user.target.wants/squid.service
 ln -sf /lib/systemd/system/squid.service
 /etc/systemd/system/graphical.target.wants/
 systemctl daemon-reload


 -T.C.

  Perhaps there is a systemctl option to remove and reset the soft link?

systemctl disable and systemctl reset, respectively.

-T.C.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-12 Thread Fedora User
On Fri, 11 Nov 2011 19:27:34 -0700
T.C. Hollingsworth tchollingswo...@gmail.com wrote:

 On Fri, Nov 11, 2011 at 6:07 PM, Fedora User fedora...@gmail.com
 wrote:
  I've been doing this since RH 7.3. I'm an old fart and I don't do
  change well. There are 49 SystemD man pages. Each one is more
  esoteric than the Talmud. Seriously. Chkconfig made perfect sense
  to me. I just need one example to figure it all out.
 
  If I want squid to start in L-5 but not L-3. What do I do?
 
 systemd replaces numerical runlevels with named targets.  Apart from
 that, it works very similar to how chkconfig works under the hood.
 chkconfig --level 3 squid off essentially just does rm
 /etc/rc3.d/squid.  chkconfig --level 5 squid on just translates to
 ln -sf /etc/init.d/squid /etc/rc5.d/.  The systemd way is very
 similar:
 
 rm -f /etc/systemd/system/multi-user.target.wants/squid.service
 ln -sf /lib/systemd/system/squid.service
 /etc/systemd/system/graphical.target.wants/
 systemctl daemon-reload
 
 The graphical target is the equivalent of runlevel 5 in sysvinit,
 and it starts a display manager, while the multi-user target is the
 equivalent of runlevel 3, bringing you to a tty.  So, the above
 commands first disables squid in multi-user.target, and the second
 enables squid in graphical.target.  The final command informs systemd
 of the change.
 
 -T.C.

Thanks. That gives me enough to sort it out. The system does seem to
boot faster but this is really arcane compared to sysV which seemed
very straightforward. Could be just old dog - new trick.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-12 Thread Tom Horsley
On Sun, 13 Nov 2011 00:00:13 -0500
Fedora User wrote:

 The system does seem to
 boot faster but this is really arcane compared to sysV which seemed
 very straightforward.

Arcane is the word. One big problem is the complete
lack of anything like chkconfig --list for systemd
services (it would be nice if chkconfig just figured
out how to provide the info and included it).

I got very confused when I apparently forgot to
configure some services when setting up my system,
and a contributor to that confusion was the lack
of a decent query tool that could tell me the
state of both new and old services in one
step.

(I do like how much faster it boots though, especially
during initial setup when I'm often rebooting to
check that things work properly or to go back to
f15 to compare something).
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-12 Thread Kevin Fenzi
On Sun, 13 Nov 2011 00:10:36 -0500
Tom Horsley horsley1...@gmail.com wrote:

 On Sun, 13 Nov 2011 00:00:13 -0500
 Fedora User wrote:
 
  The system does seem to
  boot faster but this is really arcane compared to sysV which seemed
  very straightforward.
 
 Arcane is the word. One big problem is the complete
 lack of anything like chkconfig --list for systemd
 services (it would be nice if chkconfig just figured
 out how to provide the info and included it).

Does: 

systemctl list-unit-files

give you any of what you are looking for?

kevin


signature.asc
Description: PGP signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


SystemD - F-16

2011-11-11 Thread Fedora User
I've been doing this since RH 7.3. I'm an old fart and I don't do change
well. There are 49 SystemD man pages. Each one is more esoteric than the
Talmud. Seriously. Chkconfig made perfect sense to me. I just need one
example to figure it all out. 

If I want squid to start in L-5 but not L-3. What do I do?

Thanks
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: SystemD - F-16

2011-11-11 Thread T.C. Hollingsworth
On Fri, Nov 11, 2011 at 6:07 PM, Fedora User fedora...@gmail.com wrote:
 I've been doing this since RH 7.3. I'm an old fart and I don't do change
 well. There are 49 SystemD man pages. Each one is more esoteric than the
 Talmud. Seriously. Chkconfig made perfect sense to me. I just need one
 example to figure it all out.

 If I want squid to start in L-5 but not L-3. What do I do?

systemd replaces numerical runlevels with named targets.  Apart from
that, it works very similar to how chkconfig works under the hood.
chkconfig --level 3 squid off essentially just does rm
/etc/rc3.d/squid.  chkconfig --level 5 squid on just translates to
ln -sf /etc/init.d/squid /etc/rc5.d/.  The systemd way is very
similar:

rm -f /etc/systemd/system/multi-user.target.wants/squid.service
ln -sf /lib/systemd/system/squid.service
/etc/systemd/system/graphical.target.wants/
systemctl daemon-reload

The graphical target is the equivalent of runlevel 5 in sysvinit,
and it starts a display manager, while the multi-user target is the
equivalent of runlevel 3, bringing you to a tty.  So, the above
commands first disables squid in multi-user.target, and the second
enables squid in graphical.target.  The final command informs systemd
of the change.

-T.C.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines