{"result":{"depiction_url":null,"edges":{"hasreference":{"objects":[{"created":"2026-10-07T11:13:46Z","object_id":{"id":3064,"is_a":["text","documentation","adminguide"],"name":"admin_service_startup","title":{"_type":"trans","tr":{"en":"Configure service startup and restart behaviour"}},"uri":"https:\/\/zotonic.com\/id\/3064"},"seq":1},{"created":"2026-10-07T11:13:46Z","object_id":{"id":3063,"is_a":["text","documentation","adminguide"],"name":"admin_deploy_release","title":{"_type":"trans","tr":{"en":"Deploy and verify a release"}},"uri":"https:\/\/zotonic.com\/id\/3063"},"seq":2}],"predicate":{"id":2774,"is_a":["meta","predicate"],"name":"hasreference","title":{"_type":"trans","tr":{"en":"Documentation reference"}},"uri":"https:\/\/zotonic.com\/id\/hasreference"}},"references":{"objects":[{"created":"2020-05-30T05:47:48Z","object_id":{"id":1547,"is_a":["text","documentation","reference"],"name":"doc_reference_cli_index","title":{"_type":"trans","tr":{"en":"Command-line reference"}},"uri":"https:\/\/zotonic.com\/id\/1547"},"seq":1000000},{"created":"2020-05-30T05:47:48Z","object_id":{"id":1481,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_deployment_env","title":{"_type":"trans","tr":{"en":"Keep development and production settings distinct"}},"uri":"https:\/\/zotonic.com\/id\/1481"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"subject":{"objects":[{"created":"2026-10-07T11:13:46Z","object_id":{"id":2554,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_how_to_guide","title":"How-to guide","uri":"https:\/\/zotonic.com\/id\/2554"},"seq":1},{"created":"2026-10-07T11:13:46Z","object_id":{"id":2566,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_operator","title":"Operator","uri":"https:\/\/zotonic.com\/id\/2566"},"seq":2},{"created":"2026-10-07T11:13:46Z","object_id":{"id":2605,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_site_management","title":"Site management","uri":"https:\/\/zotonic.com\/id\/2605"},"seq":3},{"created":"2026-10-07T11:13:46Z","object_id":{"id":2603,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_configuration","title":"Configuration","uri":"https:\/\/zotonic.com\/id\/2603"},"seq":4},{"created":"2026-10-07T11:13:46Z","object_id":{"id":2689,"is_a":["categorization","keyword","keyword_quality"],"name":"zotonic_topic_reliability","title":"Reliability","uri":"https:\/\/zotonic.com\/id\/2689"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1987,"is_a":["text","documentation","developerguide"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1987"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_developerguide_deployment_startup","page_url":{"en":"https:\/\/zotonic.com\/docs\/1987\/run-zotonic-as-a-service","x-default":"https:\/\/zotonic.com\/docs\/1987\/run-zotonic-as-a-service"},"preview_url":null,"resource":{"body":{"_type":"trans","tr":{"en":"<p>Use one service manager for each installation. On a Linux host with systemd, this is a starting point for <code>\/etc\/systemd\/system\/zotonic.service<\/code>:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-ini\">[Unit]\nDescription=Zotonic\nAfter=network.target\n\n[Service]\nType=simple\nUser=zotonic\nGroup=zotonic\nWorkingDirectory=\/srv\/zotonic\nExecStart=\/srv\/zotonic\/bin\/zotonic start_nodaemon\nRestart=on-failure\nRestartSec=5\nTimeoutStopSec=120\n\n[Install]\nWantedBy=multi-user.target\n<\/code><\/pre>\n<p>Adapt the account and paths to the installation. Ensure Erlang\/OTP 28 and media tools are on the service&#39;s PATH, and that configuration and persistent storage are readable or writable by this account as appropriate. The process must run in the foreground; do not put <code>bin\/zotonic start<\/code> behind <code>Type=simple<\/code>.<\/p>\n<p>After reviewing the unit, run <code>systemctl daemon-reload<\/code>, enable\/start it through your operating procedure, and inspect <code>systemctl status zotonic<\/code> and <code>journalctl -u zotonic<\/code>. Check a public page, login and an uploaded file. Test a restart and a host reboot in acceptance before production.<\/p>\n<p>Keep secrets in the deployment&#39;s protected configuration. Containers should use their platform&#39;s restart and storage policies instead of a second systemd process inside the container. The old distribution-specific init scripts are historical examples, not the default installation route.<\/p>"}},"category_id":{"id":317,"is_a":["meta","category"],"name":"developerguide","title":"Developer guide","uri":"https:\/\/zotonic.com\/id\/developerguide"},"content_group_id":{"id":339,"is_a":["meta","content_group"],"name":"default_content_group","title":{"_type":"trans","tr":{"en":"Default Content Group"}},"uri":"https:\/\/zotonic.com\/id\/default_content_group"},"created":"2020-05-30T05:47:48Z","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"doc_editorial_bundle":true,"doc_editorial_edges":{"hasreference":[3063,3064],"subject":[2554,2566,2603,2605,2689]},"github_url":"https:\/\/github.com\/zotonic\/zotonic\/tree\/master\/doc\/developer-guide\/deployment\/startup.rst","is_authoritative":true,"is_dependent":false,"is_featured":false,"is_protected":false,"is_published":true,"is_unfindable":false,"language":["en"],"modified":"2026-10-07T11:13:57Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"name":"doc_developerguide_deployment_startup","pivot_geocode":null,"pivot_location_lat":null,"pivot_location_lng":null,"privacy":0,"publication_end":"9999-06-01T00:00:00Z","publication_start":"2022-02-15T10:01:28Z","slug":"run-zotonic-as-a-service","summary":{"_type":"trans","tr":{"en":"Start a foreground Zotonic process under the host service manager."}},"title":{"_type":"trans","tr":{"en":"Run Zotonic as a service"}},"title_slug":{"_type":"trans","tr":{"en":"run-zotonic-as-a-service"}},"tz":"UTC","uri":null,"version":34,"visible_for":0},"uri":"https:\/\/zotonic.com\/id\/1987","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1987"}},"status":"ok"}