Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasette as a service #12

Open
ross-spencer opened this issue Mar 13, 2023 · 0 comments
Open

Datasette as a service #12

ross-spencer opened this issue Mar 13, 2023 · 0 comments

Comments

@ross-spencer
Copy link
Member

If need be, we can run the utility as a service with something like this:

# datasette.service
[Unit]
Description=datasette
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/bin/python -m http.server 80 --d /home/spencer/git/simonw/datasette-lite

[Install]
WantedBy=multi-user.target
● datasette.service - datasette
     Loaded: loaded (/etc/systemd/system/datasette.service; disabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-03-13 14:35:11 CET; 2min 9s ago
   Main PID: 2046176 (python)
      Tasks: 1 (limit: 4609)
     Memory: 26.4M
     CGroup: /system.slice/datasette.service
             └─2046176 /usr/bin/python -m http.server 80 --d /home/spencer/git/simonw/datasette-lite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant