4 changed files with 30 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||||
|
[Unit] |
||||
|
Description=Solr Optimize service |
||||
|
|
||||
|
[Service] |
||||
|
Type=oneshot |
||||
|
ExecStart=/usr/bin/curl http://localhost:8983/solr/dovecot/update?commit=true |
||||
@ -0,0 +1,9 @@ |
|||||
|
[Unit] |
||||
|
Description=Solr-commit timer |
||||
|
|
||||
|
[Timer] |
||||
|
OnActiveSec=60s |
||||
|
Persistent=true |
||||
|
|
||||
|
[Install] |
||||
|
WantedBy=timers.target |
||||
@ -0,0 +1,6 @@ |
|||||
|
[Unit] |
||||
|
Description=Solr Optimize service |
||||
|
|
||||
|
[Service] |
||||
|
Type=oneshot |
||||
|
ExecStart=/usr/bin/curl http://localhost:8983/solr/dovecot/update?optimize=true |
||||
@ -0,0 +1,9 @@ |
|||||
|
[Unit] |
||||
|
Description=Solr-optimize timer |
||||
|
|
||||
|
[Timer] |
||||
|
OnActiveSec=1d |
||||
|
Persistent=true |
||||
|
|
||||
|
[Install] |
||||
|
WantedBy=timers.target |
||||
Loading…
Reference in new issue