Add a Systemd service unit file for the server
This commit is contained in:
14
debian/boids-web.service
vendored
Normal file
14
debian/boids-web.service
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=A website hosting a WASM build of Boids
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env python3 -m http.server -d /usr/share/boids 8000
|
||||
Restart=never
|
||||
User=nobody
|
||||
Group=nobody
|
||||
WorkingDirectory=/usr/share/boids
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user