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

Date: Fri, 12 Jun 2015 15:53:52
From: Bob Bernstein <[email protected]>
To: Debian User List <[email protected]>
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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/[email protected]




--
To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/[email protected]

Reply via email to