Re: Fedora disimprovements: am I alone?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux