File tree 3 files changed +27
-10
lines changed
provision-contest/ansible/roles/domlogo
3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 44
44
owner : domjudge
45
45
group : domjudge
46
46
47
- - name : Add autostart shortcuts
47
+ - name : Copy domlogo systemd unit file
48
48
template :
49
- src : " domjudgelogo.desktop.j2"
50
- dest : " /home/domjudge/.config/autostart/domjudgelogo.desktop"
51
- owner : domjudge
52
- group : domjudge
53
- mode : 0755
49
+ src : " domlogo.service.j2"
50
+ dest : " /etc/systemd/system/domlogo.service"
51
+
52
+ - name : Enable and start domlogo
53
+ systemd :
54
+ name : domlogo
55
+ enabled : true
56
+ state : started
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description="DOMlogo"
3
+ After=network.target
4
+
5
+ [Service]
6
+ Type=simple
7
+
8
+ Environment=REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/domserver.crt
9
+ Environment=DISPLAY=:0
10
+ WorkingDirectory={{ DJ_DIR }}
11
+ ExecStart=/usr/bin/python3 ./domlogo.py
12
+ User=domjudge
13
+
14
+ Restart=always
15
+ RestartSec=3
16
+
17
+ [Install]
18
+ WantedBy=graphical.target
You can’t perform that action at this time.
0 commit comments