deploy/sbm-webpublish.service (599 bytes)
1 # systemd unit for sbm-webpublish. deploy.sh installs it as 2 # /etc/systemd/system/sbm-webpublish.service. /etc/sbm-webpublish.env 3 # (mode 600) holds ADMIN_PASSWORD=... 4 [Unit] 5 Description=sbm-webpublish: links from an sbm bookmark file 6 After=network-online.target 7 Wants=network-online.target 8 9 [Service] 10 EnvironmentFile=/etc/sbm-webpublish.env 11 Environment=LINKS_FILE=/var/lib/sbm-webpublish/links.sbm 12 ExecStart=/usr/local/bin/sbm-webpublish 13 DynamicUser=yes 14 StateDirectory=sbm-webpublish 15 ProtectSystem=strict 16 ProtectHome=yes 17 NoNewPrivileges=yes 18 Restart=on-failure 19 20 [Install] 21 WantedBy=multi-user.target