diff --git a/app/deploy/systemd/teknav-publish-due.service b/app/deploy/systemd/teknav-publish-due.service new file mode 100644 index 0000000..d188373 --- /dev/null +++ b/app/deploy/systemd/teknav-publish-due.service @@ -0,0 +1,16 @@ +[Unit] +Description=Publish scheduled Teknav articles +After=postgresql.service redis-server.service + +[Service] +Type=oneshot +User=teknav +Group=teknav +WorkingDirectory=/opt/teknav/current/backend +EnvironmentFile=/etc/teknav/backend.env +ExecStart=/usr/bin/npm run publish:due +NoNewPrivileges=true +PrivateTmp=true +ProtectSystem=full +ProtectHome=true +