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 Jan 10, 2025
1 parent f321574 commit 95ce596
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 95ce596

Please sign in to comment.