Files
HealthAppRepositoryB/deploy/systemd/healthapp-b.service
T

29 lines
637 B
Desktop File

[Unit]
Description=Health App Architecture B
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=healthapp-b
Group=healthapp-b
WorkingDirectory=/opt/healthapp-b
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=HEALTHAPP_CONFIGURATION_FILE=/etc/healthapp-b/appsettings.json
ExecStart=@DOTNET@ /opt/healthapp-b/HealthApp.dll
Restart=on-failure
RestartSec=3
KillSignal=SIGINT
TimeoutStopSec=30
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/healthapp-b
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target