24 lines
427 B
Plaintext
24 lines
427 B
Plaintext
#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
|
|
#
|