mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-19 22:41:55 +00:00
35 lines
649 B
Desktop File
35 lines
649 B
Desktop File
[Unit]
|
|
Description=HAM .NET Application
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
NotifyAccess=all
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Working directory
|
|
WorkingDirectory=/var/www/HAM
|
|
|
|
# Application settings
|
|
ExecStart=/usr/bin/dotnet /var/www/HAM/Berufsschule_HAM.dll
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
#TimeoutStopSec=30
|
|
#TimeoutStartSec=60
|
|
|
|
# Environment variables (uncomment and modify as needed)
|
|
Environment=DOTNET_ENVIRONMENT=Production
|
|
|
|
# Security settings
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=ham
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |