Skip to content

Commit

Permalink
auto restart service in the event of a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasec98 authored and curquiza committed Jan 22, 2025
1 parent 8b89c84 commit 84c4b6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/meilisearch.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Type=simple
Environment="MEILI_SERVER_PROVIDER=provider_name"
Environment="MEILI_DUMP_DIR=/var/opt/meilisearch/dumps"
ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dump-dir $MEILI_DUMP_DIR
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=default.target

0 comments on commit 84c4b6e

Please sign in to comment.