home / docs / sections

sections: deploying:deploying-openrc

This data as json

id page ref title content breadcrumbs references
deploying:deploying-openrc deploying deploying-openrc Running Datasette using OpenRC OpenRC is the service manager on non-systemd Linux distributions like Alpine Linux and Gentoo . Create an init script at /etc/init.d/datasette with the following contents: #!/sbin/openrc-run name="datasette" command="datasette" command_args="serve -h 0.0.0.0 /path/to/db.db" command_background=true pidfile="/run/${RC_SVCNAME}.pid" You then need to configure the service to run at boot and start it: rc-update add datasette rc-service datasette start ["Deploying Datasette"] [{"href": "https://www.alpinelinux.org/", "label": "Alpine Linux"}, {"href": "https://www.gentoo.org/", "label": "Gentoo"}]
Powered by Datasette · Queries took 2.936ms