Created
October 6, 2019 03:38
-
-
Save saagarjha/1b4a65580dfc69a4ef14cb7afec5e5c8 to your computer and use it in GitHub Desktop.
systemd service to run a webserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Python Web Server | |
After=network.target | |
[Service] | |
Type=simple | |
Restart=always | |
User=root | |
WorkingDirectory=/share | |
ExecStart=/usr/bin/python3 -m http.server 80 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment