This commit is contained in:
root
2023-08-25 16:22:24 +02:00
parent 27c9174741
commit ab9457a1d5
9 changed files with 210 additions and 1 deletions

23
härtung Normal file
View File

@@ -0,0 +1,23 @@
#namespace Beispiele
[Unit]
Description=Start Server
[Service]
Type=simple
Restart=on-failure
ExecStart=/usr/bin/python3 -m http.server
WorkingDirectory=/
#Namespace tricks
#macht Verzeichnise readOnly
ReadOnlyPaths=/var /usr
#zeigt sie leer an
InaccessiblePaths=/sys /proc
#eignes tmp
PrivateTmp=yes
ProtectSystem=strict
#PrivateUser=yes
###########################################################
#read man systemd-exec
#