Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
nginx service stopped after exiting the server throws (code=exited, status=147)
Services exited with the below code.
[Unit] Description=Sample services [Service] WorkingDirectory=/var/www/services ExecStart=/usr/bin/dotnet /var/www/services/Sample.dll Restart=always RestartSec=10 KillSignal=SIGINT SyslogIdentifier=services User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false [Install] WantedBy=multi-user.target
sudo systemctl status services.service shows below issue with code exited and status as 147:
services.service - Sample services Loaded: loaded (/etc/systemd/system/services.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2021-05-05 12:00:59 UTC; 172ms ago Process: 288358 ExecStart=/usr/bin/dotnet /var/www/services/Sample.dll (code=exited, status=147) Main PID: 288358 (code=exited, status=147) May 05 12:00:59 ubuntu-s-1vcpu-1gb-nyc3-01 systemd: services.service: Main process exited, code=exited, status=147/n/a May 05 12:00:59 ubuntu-s-1vcpu-1gb-nyc3-01 systemd: services.service: Failed with result 'exit-code'.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×