-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathservice.txt
More file actions
30 lines (24 loc) · 859 Bytes
/
service.txt
File metadata and controls
30 lines (24 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sudo nano /etc/systemd/system/ide.service
sudo systemctl start ide.service
sudo systemctl daemon-reload
sudo systemctl restart ide.service
sudo systemctl status ide.service
[Unit]
Description=IDE
[Service]
WorkingDirectory=/home/ubuntu/sciedev/ide
ExecStart=/usr/bin/dotnet /home/ubuntu/sciedev/ide/Dev.Ide.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=ide
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
# How many seconds to wait for the app to shut down after it receives the initial interrupt signal.
# If the app doesn't shut down in this period, SIGKILL is issued to terminate the app.
# The default timeout for most distributions is 90 seconds.
TimeoutStopSec=90
[Install]
WantedBy=multi-user.target