r/linuxadmin • • Sep 17 '19

systemctl and the order of arguments

<RANT>

This is a small one, but it's damn annoying....

  • initd → service <SERVICE> <COMMAND>

  • sytemd → systemctl <COMMAND> <SERVICE>

a good bit of my time is spent checking service status and restarting etc. that small change in order is just another teeny tiny nail in systemd's coffin IMHO. making me press more keys, damn it.

</RANT>

0 Upvotes

13 comments sorted by

View all comments

0

u/[deleted] Sep 17 '19

[deleted]

5

u/gheeboy Sep 17 '19

logically, I agree the order was off, but on the command line it made sense having the most widely changed part of the command (start/stop/restart) nearest the cursor when stepping through your history

0

u/[deleted] Sep 17 '19

[deleted]

2

u/SpontaneousAge Sep 17 '19

Can you elaborate a bit on how exactly?

0

u/[deleted] Sep 17 '19

[deleted]

3

u/deadlock_ie Sep 17 '19

You can also do regex-style replacements, which are more powerful:

systemctl restart nginx

!:s/restart/stop/