| 1 | [Unit] |
| 2 | Description=Groonga full text search HTTP server |
| 3 | Documentation=https://groonga.org/docs/server/package.html#groonga-server-http |
| 4 | Wants=network-online.target |
| 5 | After=network-online.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=simple |
| 9 | EnvironmentFile=-/etc/default/groonga-server-http |
| 10 | User=_groonga |
| 11 | Group=groonga |
| 12 | RuntimeDirectory=groonga |
| 13 | RuntimeDirectoryPreserve=yes |
| 14 | ExecStart=/usr/bin/groonga \ |
| 15 | --bind-address $ADDRESS \ |
| 16 | --log-path $LOG_PATH \ |
| 17 | --pid-path $PID_PATH \ |
| 18 | --port $PORT \ |
| 19 | --protocol http \ |
| 20 | --query-log-path $QUERY_LOG_PATH \ |
| 21 | -s \ |
| 22 | $DATABASE |
| 23 | |
| 24 | [Install] |
| 25 | WantedBy=multi-user.target |