-
-
Notifications
You must be signed in to change notification settings - Fork 492
/
manticore.service.in
31 lines (28 loc) · 1021 Bytes
/
manticore.service.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[Unit]
Description=Manticore Search Engine
After=network.target remote-fs.target nss-lookup.target
After=syslog.target
[Service]
Type=forking
User=manticore
Group=manticore
# Run ExecStartPre with root-permissions
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p @CMAKE_INSTALL_FULL_RUNSTATEDIR@/manticore
ExecStartPre=/bin/chown manticore.manticore @CMAKE_INSTALL_FULL_RUNSTATEDIR@/manticore
# Run ExecStart with User=manticore / Group=manticore
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/searchd --config @CMAKE_INSTALL_FULL_SYSCONFDIR@/manticoresearch/manticore.conf $_ADDITIONAL_SEARCHD_PARAMS
ExecStop=@CMAKE_INSTALL_FULL_BINDIR@/searchd --config @CMAKE_INSTALL_FULL_SYSCONFDIR@/manticoresearch/manticore.conf --stopwait
KillMode=process
KillSignal=SIGTERM
SendSIGKILL=no
LimitNOFILE=65536
LimitCORE=infinity
LimitMEMLOCK=infinity
Restart=on-failure
TimeoutStartSec=0
PIDFile=@CMAKE_INSTALL_FULL_RUNSTATEDIR@/manticore/searchd.pid
[Install]
WantedBy=multi-user.target
Alias=manticore.service
Alias=searchd.service