root@raspberrypi:~# systemctl status myapp.service
● myapp.service - MyApp Service
Loaded: loaded (/etc/systemd/system/myapp.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sun 2020-02-23 16:16:08 UTC; 11s ago
Process: 589 ExecStart=/usr/bin/myapp (code=exited, status=1/FAILURE)
Process: 590 ExecStartPost=/usr/bin/wss (code=killed, signal=TERM)
Main PID: 589 (code=exited, status=1/FAILURE)
Tasks: 0 (limit: 2200)
Memory: 2.3M
CGroup: /system.slice/myapp.service
févr. 23 16:16:08 raspberrypi myapp[589]: Message send to the client: It's 16:15:05
févr. 23 16:16:08 raspberrypi myapp[589]: Message received from the client: test
févr. 23 16:16:08 raspberrypi myapp[589]: Message send to the client: It's 16:15:17
févr. 23 16:16:08 raspberrypi myapp[589]: Message send to the client: It's 16:15:47
févr. 23 16:16:08 raspberrypi myapp[589]: Catch SIGTERM
févr. 23 16:16:08 raspberrypi myapp[589]: server_stop()
févr. 23 16:16:08 raspberrypi myapp[589]: Thread `server` stop
févr. 23 16:16:08 raspberrypi systemd[1]: myapp.service: Main process exited, code=exited, status=1/FAILURE
févr. 23 16:16:08 raspberrypi systemd[1]: myapp.service: Failed with result 'timeout'.
févr. 23 16:16:08 raspberrypi systemd[1]: Failed to start MyApp Service.
Partager