[Unit] Description=LittleShop ASP.NET Core Web Application After=network.target [Service] Type=notify WorkingDirectory=/opt/littleshop ExecStart=/usr/bin/dotnet /opt/littleshop/LittleShop.dll --environment=Localhost Restart=always RestartSec=10 KillSignal=SIGINT SyslogIdentifier=littleshop User=www-data Environment=ASPNETCORE_ENVIRONMENT=Localhost Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1 # Security hardening PrivateTmp=true NoNewPrivileges=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/opt/littleshop ReadWritePaths=/opt/littleshop/logs [Install] WantedBy=multi-user.target