[Unit] Description=PlotDirector production application After=network.target mssql-server.service Requires=mssql-server.service [Service] Type=simple User=plotdirector Group=plotdirector WorkingDirectory=/srv/plotdirector/current ExecStart=/usr/bin/dotnet /srv/plotdirector/current/PlotLine.dll --contentRoot=/srv/plotdirector/current Environment=ASPNETCORE_ENVIRONMENT=Production Environment=ASPNETCORE_URLS=http://127.0.0.1:5001 Environment=DOTNET_NOLOGO=1 EnvironmentFile=/etc/plotdirector/plotdirector.env Restart=on-failure RestartSec=10 UMask=0027 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectControlGroups=true RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX ReadWritePaths=/srv/plotdirector/shared InaccessiblePaths=-/srv/catherinelynwood -/etc/catherinelynwood -/srv/backups -/etc/sql-backup StandardOutput=journal StandardError=journal SyslogIdentifier=plotdirector [Install] WantedBy=multi-user.target