由于系统服务似乎默默停止

一个服务死了,我只知道有什么东西被打破了。 我敢肯定,自从带来systemd的Debian 8升级以来,这种情况已经发生了,尽pipe我并不完全确定systemd是应该受到指责的。

我不确定之前的init是否刚刚重新启动了死机,而systemd没有启动。

他们的症状是systemctl status foo.service显示像active(exited)之类的东西。

有没有办法注意到系统pipe理服务中状态的改变? 和/或让它尝试重新启动几次?

(我是systemd新手。)

编辑

这是一个例子:Stunnel已经停止了。 这是我做了什么让它再次工作:

 root@server:/root# systemctl status stunnel4 ● stunnel4.service - LSB: Start or stop stunnel 4.x (SSL tunnel for network daemons) Loaded: loaded (/etc/init.d/stunnel4) Active: active (exited) since Sun 2016-05-01 07:03:54 BST; 2 days ago Process: 13443 ExecStop=/etc/init.d/stunnel4 stop (code=exited, status=0/SUCCESS) Process: 13455 ExecStart=/etc/init.d/stunnel4 start (code=exited, status=0/SUCCESS) Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. root@server:/root# systemctl stop stunnel4 root@server:/root# systemctl status stunnel4 ● stunnel4.service - LSB: Start or stop stunnel 4.x (SSL tunnel for network daemons) Loaded: loaded (/etc/init.d/stunnel4) Active: inactive (dead) since Tue 2016-05-03 10:00:10 BST; 947ms ago Process: 13006 ExecStop=/etc/init.d/stunnel4 stop (code=exited, status=0/SUCCESS) Process: 13455 ExecStart=/etc/init.d/stunnel4 start (code=exited, status=0/SUCCESS) May 03 10:00:10 servername stunnel4[13006]: Stopping SSL tunnels: stunnel. Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. ✗ Error in last command root@server:/root# systemctl start stunnel4 root@server:/root# systemctl status stunnel4 ● stunnel4.service - LSB: Start or stop stunnel 4.x (SSL tunnel for network daemons) Loaded: loaded (/etc/init.d/stunnel4) Active: active (running) since Tue 2016-05-03 10:00:18 BST; 1s ago Process: 13006 ExecStop=/etc/init.d/stunnel4 stop (code=exited, status=0/SUCCESS) Process: 13031 ExecStart=/etc/init.d/stunnel4 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/stunnel4.service └─13044 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf May 03 10:00:18 servername stunnel4[13031]: Starting SSL tunnels: [Started: /etc/stunnel/stunnel.conf] stunnel. 

我能find的唯一日志似乎是重新启动:

 syslog.2.gz:May 1 07:03:54 pap1 stunnel4[13443]: Stopping SSL tunnels: [stopped: /etc/stunnel/stunnel.conf] stunnel. syslog.2.gz:May 1 07:03:54 pap1 stunnel4[13455]: Starting SSL tunnels: [Already running: /etc/stunnel/stunnel.conf] stunnel. 

看起来像失败了 我不知道为什么重新启动(系统上的其他问题 ),也不是为什么失败。