-
Notifications
You must be signed in to change notification settings - Fork 0
/
foo.txt
49 lines (40 loc) · 1.1 KB
/
foo.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[Unit]
Description=Restart LD API on config change
[Path]
PathChanged=/etc/ldapi-server/ldapi-server.ini
[Install]
WantedBy=multi-user.target
[Unit]
Description=Restart LD API when important files change
After=ldapi-server.service
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart ldapi-server
[Unit]
Description=Restart LD API on trigger file creation
[Path]
PathExists=/usr/lib/ldapi-server/restart-server-now
[Install]
WantedBy=multi-user.target
[Unit]
Description=Restart LD API when restart trigger file is created
After=ldapi-server.service
[Service]
Type=oneshot
# First delete the file so the trigger will only fire once
ExecStart=/bin/rm /usr/lib/ldapi-server/restart-server-now
ExecStart=/bin/systemctl restart ldapi-server
[Unit]
Description=LanguageDepot API server
[Service]
WorkingDirectory=/usr/lib/ldapi-server
ExecStart=/usr/lib/ldapi-server/Server
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=ldapi-server
User=ldapi-server
Environment=ASPNETCORE_ENVIRONMENT=Testing
[Install]
WantedBy=multi-user.target