Skip to content

Instantly share code, notes, and snippets.

@fabaff
Created April 30, 2013 14:44
Show Gist options
  • Select an option

  • Save fabaff/5489183 to your computer and use it in GitHub Desktop.

Select an option

Save fabaff/5489183 to your computer and use it in GitHub Desktop.
systemd service unit for pywebserve
[Unit]
Description=A simple python Web server
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/python /var/www/pywebserve/pywebserve.py
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment