Ubuntu的“服务”命令

我在运行Ubuntu的两台独立的机器上input以下命令:

service ssh status

机器1的输出:

ssh start/running, process 25369

机器2的输出:

 ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2016-03-31 15:56:49 BST; 4min 1s ago Main PID: 2172 (sshd) CGroup: /system.slice/ssh.service ├─1825 sshd: (some username) [priv] ├─1843 sshd: (some username)@pts/0 ├─1844 -bash ├─1868 su root ├─1869 bash ├─2172 /usr/sbin/sshd -D └─2176 systemctl status ssh.service Mar 31 15:56:49 (computer's hostname) systemd[1]: Started OpenBSD Secure Shell server. Mar 31 15:56:49 (computer's hostname) sshd[2172]: Server listening on 0.0.0.0 port 22. Mar 31 15:56:49 (computer's hostname) sshd[2172]: Server listening on :: port 22. 

然后我input以下命令:

 service ssh restart 

机器1的输出:

 ssh start/running, process 25369 

机器2上没有任何输出。

我得到了与所有服务类似的结果(不仅与SSH)。 处理service命令时,如何使机器2输出与机器1相同的数据?

问题是与systemd …所以我通过运行删除它:

sudo apt-get install upstart-sysv

“服务”命令终于输出相同的任何其他Linux发行…没有不必要的额外垃圾!