You are not logged in.

#1 2014-08-07 11:46:15

Zzipo
Member
From: North Spain
Registered: 2013-01-07
Posts: 61

systemctl start & status

Hi

I usually do:

systemctl start sth && systemctl status sth

Is there any way to do both at the same time? or at least to execute a starting process and checking the status/logs in journal?

If I am right, when I was using SysV usually shows the output if fails /etc/init.d/sth start
But well, it does not matter, the feature is with Systemd

Offline

#2 2014-08-07 12:33:52

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,485
Website

Re: systemctl start & status

You could always make a function. e.g.

function sss() {
  systemctl start $1
  systemctl status $1
}

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-08-07 13:17:20

Zzipo
Member
From: North Spain
Registered: 2013-01-07
Posts: 61

Re: systemctl start & status

I was trying to avoid that... runtime function overwrites and/or environment envs (root, users)

Anyway, thanks!

Offline

Board footer

Powered by FluxBB