Systemd Service More Simple Webserver: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „ root@pinkman:/etc/systemd/system# cat simple-http.service <pre> [Unit] Description=My Miscellaneous Service After=network.target [Service] Type=simple User…“) |
|||
| Zeile 1: | Zeile 1: | ||
| − | + | =Service Datei= | |
| + | vi /etc/systemd/system/simple-http.service | ||
<pre> | <pre> | ||
Version vom 21. Juni 2024, 04:15 Uhr
Service Datei
vi /etc/systemd/system/simple-http.service
[Unit] Description=My Miscellaneous Service After=network.target [Service] Type=simple User=thomas WorkingDirectory=/home/thomas/html ExecStart=/usr/bin/python3 -m http.server Restart=on-abort [Install] WantedBy=multi-user.target