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

Re: systemd equivalent



On Friday 2015-06-12 15:53, Bob Bernstein wrote:

Date: Fri, 12 Jun 2015 15:53:52
From: Bob Bernstein <poobah@ruptured-duck.com>
To: Debian User List <debian-user@lists.debian.org>
Subject: systemd equivalent

I need to steel myself to using systemd commands. What
would be the "systemd-correct" form of this:

$ ps ax | grep ssh

I use that to check for the existence (or, as the case
may be)  demise) of an ssh tunnel I use for VNC. What
should I use?


My usual approach is to look for the name of the service, like so:

systemctl -a|grep ssh

On my Debian/Jessie box, I get:

ssh.service loaded active running OpenBSD Secure Shell server

Then you can check status, like so:

systemctl status ssh.service

Assuming it's running, the output should include a listing of the sshd processes running.

I still find systemd to be excessively complicated and the tools (especially systemadm) primitive, but at least now I have some idea as to how to work the system.

--------------------------|
John L. Ries              |
Salford Systems           |
Phone: (619)543-8880 x107 |
or     (435)867-8885      |
--------------------------|


Thanks all,

--
These are not the droids you are looking for.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] nycvar.QRO.7.75.3.1506121750100.917@arjgebyy.ybpnyqbznva">https://lists.debian.org/[🔎] nycvar.QRO.7.75.3.1506121750100.917@arjgebyy.ybpnyqbznva




Reply to: