| [Unit] |
| Description=Streaming Telemetry Server |
| # Specifies that this service should start after the network is up |
| After=network.target |
| |
| [Service] |
| ExecStart=/usr/bin/streaming_telemetry_server \ |
| --key server_priv.pem \ |
| --cert server_pub.pem \ |
| --cacert ca_chain.pem \ |
| --policy mtls.policy \ |
| --crls /rtc/crls \ |
| --config /etc/streaming_telemetry_server_config.textproto \ |
| --emconfig /usr/share/entity-manager/configurations/BMCBoard.json,/usr/share/entity-manager/configurations/MotherBoard.json \ |
| --port 50051 |
| # Restart policy: if the service exits unexpectedly, systemd will restart it |
| # 'on-failure' means it will be restarted if it exits with a non-zero status |
| Restart=on-failure |
| # Specifies which user the service will run as |
| # 'root' means it runs with full system privileges |
| User=root |
| # from systemd/man/latest/systemd.resource-control.html |
| # Memory usage may go above the limit if unavoidable, but the processes are |
| # heavily slowed down and memory is taken away aggressively in such cases. |
| MemoryHigh=80M |
| # Specify the absolute limit on memory usage of the executed processes in this |
| # unit |
| MemoryMax=100M |
| # The percentage specifies how much CPU time the unit shall get at maximum, |
| # relative to the total CPU time available on one CPU. Use values > 100% for |
| # allotting CPU time on more than one CPU, 100% for 2 core CPU means half the |
| # maximum CPU time. |
| CPUQuota=100% |
| |
| [Install] |
| # Specifies that this service should be started when the system boots to |
| # multi-user mode |
| WantedBy=multi-user.target |