add timeout to hoarder-workers

This commit is contained in:
vhsdream 2024-11-27 18:25:14 -05:00
parent aace44b2ce
commit e80a91765c

View File

@ -164,6 +164,7 @@ ExecStart=pnpm start:prod
WorkingDirectory=/opt/hoarder/apps/workers WorkingDirectory=/opt/hoarder/apps/workers
EnvironmentFile=/opt/hoarder/.env EnvironmentFile=/opt/hoarder/.env
Restart=always Restart=always
TimeoutStopSec=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
@ -172,6 +173,9 @@ EOF
systemctl -q enable --now meilisearch.service hoarder-web.service hoarder-browser.service hoarder-workers.service systemctl -q enable --now meilisearch.service hoarder-web.service hoarder-browser.service hoarder-workers.service
msg_ok "Set up Services" msg_ok "Set up Services"
motd_ssh
customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /tmp/meilisearch.deb rm -rf /tmp/meilisearch.deb
$STD apt-get autoremove -y $STD apt-get autoremove -y