mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
39
systemd/Makefile.in
Normal file
39
systemd/Makefile.in
Normal file
@ -0,0 +1,39 @@
|
||||
SHELL = @SHELL@
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
includedir = @includedir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
mandir = @mandir@
|
||||
datarootdir = @datarootdir@
|
||||
localstatedir = @localstatedir@
|
||||
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@ @CPPFLAGS@
|
||||
DEFS = @defs@
|
||||
INCDIR = -I. -I../.. -I../../src @INCDIR@ @sql_includes@
|
||||
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../../src
|
||||
LIBS = @LIBS@ @sql_libs@
|
||||
RUNNING_USER = @RUNNING_USER@
|
||||
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
|
||||
all:
|
||||
echo all
|
||||
|
||||
install:
|
||||
$(INSTALL) -m 0644 $(srcdir)/piler.service $(DESTDIR)$(libexecdir)/piler/piler.service
|
||||
$(INSTALL) -m 0644 $(srcdir)/piler-smtp.service $(DESTDIR)$(libexecdir)/piler/piler-smtp.service
|
||||
$(INSTALL) -m 0644 $(srcdir)/pilersearch.service $(DESTDIR)$(libexecdir)/piler/pilersearch.service
|
||||
|
||||
clean:
|
||||
echo clean
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile
|
15
systemd/piler-smtp.service
Normal file
15
systemd/piler-smtp.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Piler SMTP server
|
||||
After=network.target auditd.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/piler-smtp -d
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=255
|
||||
Type=forking
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=piler-smtp.service
|
16
systemd/piler.service
Normal file
16
systemd/piler.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Piler daemon
|
||||
After=network.target mariadb.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/piler -d
|
||||
PIDFile=/var/run/piler/piler.pid
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=255
|
||||
Type=forking
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=piler.service
|
18
systemd/pilersearch.service
Normal file
18
systemd/pilersearch.service
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Searchd for piler daemon
|
||||
After=network.target mariadb.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/searchd --config /etc/piler/sphinx.conf
|
||||
ExecStartPre=/bin/bash -c "if [[ ! -d /var/run/piler ]]; then mkdir -p /var/run/piler; chown piler:piler /var/run/piler; fi"
|
||||
PIDFile=/var/run/piler/searchd.pid
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=255
|
||||
Type=forking
|
||||
User=piler
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=pilersearch.service
|
Reference in New Issue
Block a user