Fedora disimprovements: am I alone?

Bryn M. Reeves bmr at redhat.com
Fri Mar 23 10:52:56 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/23/2012 07:38 AM, Reindl Harald wrote:
> "systemctl restart httpd.service" is a joke compared with "service
> httpd restart" - a msart developer would have made .service as
> default-fallback and only "httpd.socket" as example would need full
> qualified input

That would be optimisation. A very smart programmer once taught us
that "premature optimisation is the root of all evil". Perhaps the
author felt that other work was of higher priority at the time?

Besides, I would expect any Linux admin worth paying who found this
syntax so troublesome to be able to create a wrapper to suit their
preferred invocation style with minimal effort.

alias oldservice () { systemctl $2 $1.service; }

That took about as long to think up as it did to type. I am sure you
could improve upon it with little work.

# oldservice httpd status
httpd.service - LSB: start and stop Apache HTTP Server
	  Loaded: loaded (/etc/rc.d/init.d/httpd)
	  Active: inactive (dead)
	  CGroup: name=systemd:/system/httpd.service

# oldservice httpd start
#

I'm also sure that upstream would be happy to review patches to
improve usability and merge them if appropriate.

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9sVggACgkQ6YSQoMYUY95x9wCgqEGFKjhE2dYeYU+hhPcJj1ea
jvUAn24OatuACwSoiiXr6upzi4781hXj
=PN3o
-----END PGP SIGNATURE-----


More information about the users mailing list