RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 905612 - systemd: Add sctl file link
Summary: systemd: Add sctl file link
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 908214 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-29 18:28 UTC by Prarit Bhargava
Modified: 2013-02-12 15:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-12 15:22:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Prarit Bhargava 2013-01-29 18:28:03 UTC
Description of problem:  I'm very lazy and typing systemctl is hurting my poor little fingers :)  How about adding a 

ln -sf /usr/bin/sctl /usr/bin/systemctl

AFAICT there isn't a */sctl.

Low priority but it should be easy to do and would a nice-to-have :)

P.

Comment 2 Michal Schmidt 2013-01-30 11:48:04 UTC
I'd go straight for "sc" :-)

"repoquery -f \*bin/sc" finds nothing.

Comment 3 Harald Hoyer 2013-01-30 13:04:19 UTC
$ echo 'alias sc=systemctl' >> .bashrc
or
# echo 'alias sc=systemctl' >> /etc/bashrc

Problem solved...

Comment 4 Prarit Bhargava 2013-01-30 16:27:29 UTC
(In reply to comment #3)
> $ echo 'alias sc=systemctl' >> .bashrc
> or
> # echo 'alias sc=systemctl' >> /etc/bashrc
> 
> Problem solved...

Heh :)

I agree with you on that, BUT ... there were a few people who pointed out (on memo-list IIRC) that systemctl was a lot to type in ... so I'm proposing adding something shorter *while the namespace is available*,

ie) yum whatprovides */sctl doesn't yeild any results.

and since other people want something shorter, why not just add it to the package?

FWIW, I've already done 'alias sctl=/usr/bin/systemctl' on my fedora boxes.  But since others mentioned it being a nuisance ;), I'm hoping for something more 'global' to help them out too.

P.

Comment 5 Bill Nottingham 2013-02-05 19:45:01 UTC
Hm, I'd be a little torn here - if we want a global alias, why not just rename the upstream command? Having a RH-specific alias doesn't make much sense here.

Comment 6 Prarit Bhargava 2013-02-05 23:51:18 UTC
(In reply to comment #5)
> Hm, I'd be a little torn here - if we want a global alias, why not just
> rename the upstream command? Having a RH-specific alias doesn't make much
> sense here.

I'm sorry -- I didn't mean to imply that we would diverge from upstream.  I opened this BZ to get the attention of the RHEL maintainers who would push it upstream.  FWIW, that's the way we do it in kernel land and I guess I assumed that was the way we do it everywhere else ...

P.

Comment 7 Michal Schmidt 2013-02-06 13:53:01 UTC
We've just received a similar RFE for Fedora: bug 908212

Comment 8 Michal Schmidt 2013-02-06 15:26:05 UTC
*** Bug 908214 has been marked as a duplicate of this bug. ***

Comment 9 Lennart Poettering 2013-02-12 15:22:29 UTC
If people want to define local aliases for systemctl, but I am pretty sure we should not push redundancies like this from upstream, and we really should avoid adding this in downstream too in order to not allow people to write scripts that are not portable.

So, I am pretty strongly against this. Closing.


Note You need to log in before you can comment on or make changes to this bug.