We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83ec9e8 commit 1f11e5dCopy full SHA for 1f11e5d
turing-smart-screen-python.service
@@ -0,0 +1,27 @@
1
+[Unit]
2
+Description=Turing Smart Screen
3
+Requires=network-online.target
4
+After=network-online.target
5
+
6
+[Service]
7
+Type=simple
8
+User=root
9
10
+WorkingDirectory=/opt/turing-smart-screen-python/
11
+ExecStart=python3 main.py
12
13
+; Always restart the script
14
+Restart=always
15
16
+; cf. https://www.darkcoding.net/software/the-joy-of-systemd/
17
+; /usr, /boot and /etc are read-only
18
+ProtectSystem=full
19
+; $HOME is read only ..
20
+ProtectHome=read-only
21
+; /tmp is isolated from all other processes
22
+PrivateTmp=true
23
+; Don't allow process to raise privileges (e.g. disable suid)
24
+NoNewPrivileges=true
25
26
+[Install]
27
+WantedBy=multi-user.target
0 commit comments