Tuesday, May 10, 2016

Xenial Xerus: Xeriously long service status output

Another chapter on the ongoing 16.04 migration...
I don't know what a hell are they thinking at Canonical, but I don't get the idea behind the insane amount of information that querying the services belches right now.
I hope this feature disables itself under a certain load, similar to what happens with the "Landscape pitch" MOTD when you login onto an Ubuntu Server, that turns itself off under certain load threshold...


From this:


$ sudo service ssh status
ssh start/running, process 712


Or this:

$ sudo /etc/init.d/ssh status
[sudo] password for hictio:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status ssh
ssh start/running, process 712


To this:

hictio@tango:~$ sudo /etc/init.d/ssh status
[sudo] password for hictio:
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2016-05-04 21:44:04 ART; 10min ago
  Process: 1291 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 932 (sshd)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/ssh.service
           └─932 /usr/sbin/sshd -D

May 04 21:44:04 tango systemd[1]: Started OpenBSD Secure Shell server.
May 04 21:44:09 tango systemd[1]: Reloading OpenBSD Secure Shell server.
May 04 21:44:09 tango systemd[1]: Reloaded OpenBSD Secure Shell server.
May 04 21:44:09 tango sshd[932]: Received SIGHUP; restarting.
May 04 21:44:09 tango sshd[932]: Server listening on 0.0.0.0 port 22.
May 04 21:44:09 tango sshd[932]: Server listening on :: port 22.
May 04 21:53:58 tango sshd[2593]: Failed password for hictio from 107.134.201.232 port 52009 ssh2
May 04 21:54:01 tango sshd[2593]: pam_ecryptfs: pam_sm_authenticate: /home/hictio is already mounted
May 04 21:54:01 tango sshd[2593]: Accepted password for hictio from 10.120.10.13 port 52009 ssh2
May 04 21:54:01 tango sshd[2593]: pam_unix(sshd:session): session opened for user hictio by (uid=0)
hictio@tango:~$

Labels: , , ,

0 Comments:

Post a Comment

<< Home