Files
HealthAppRepository/deploy/systemd/healthapp-api-gateway.service

23 lines
516 B
Desktop File

[Unit]
Description=HealthApp API gateway
Wants=network-online.target
After=network-online.target
[Service]
StateDirectory=healthapp-api-gateway
StateDirectoryMode=0700
Type=simple
User=healthapp
Group=healthapp
WorkingDirectory=/opt/healthapp/api-gateway
ExecStart=/usr/bin/dotnet /opt/healthapp/api-gateway/ApiGateway.dll
EnvironmentFile=/etc/healthapp/api-gateway.env
Restart=on-failure
RestartSec=5
KillSignal=SIGINT
TimeoutStopSec=30
SyslogIdentifier=healthapp-api-gateway
[Install]
WantedBy=multi-user.target