File: puppetdb.service

package info (click to toggle)
puppetdb 8.8.1-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 19,692 kB
  • sloc: javascript: 23,285; ruby: 5,620; sh: 3,457; python: 389; xml: 114; makefile: 38
file content (35 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
[Unit]
Description=Puppet-integrated catalog and fact storage
After=postgresql.service
Documentation=man:puppetdb(8)
Documentation=file:/usr/share/doc/puppetdb/index.markdown

[Service]
Type=simple
EnvironmentFile=/etc/default/puppetdb
User=puppetdb
TimeoutStartSec=300
TimeoutStopSec=60
Restart=on-abnormal
RuntimeDirectory=puppetdb

ExecStartPre=sh -c "echo -n 0 > ${RUNTIME_DIRECTORY}/restart"
ExecStart=/usr/bin/java $JAVA_ARGS -Djava.security.egd=/dev/urandom \
  -XX:OnOutOfMemoryError="kill -9 %%p" \
  -cp /usr/share/puppetdb/puppetdb.jar \
  clojure.main \
  -m puppetlabs.puppetdb.core \
  services \
  --config "/etc/puppetdb/conf.d" \
  --bootstrap-config "/etc/puppetdb/bootstrap.cfg" \
  --restart-file "${RUNTIME_DIRECTORY}/restart"
ExecStartPost=sh -c "while ! head -c1 ${RUNTIME_DIRECTORY}/restart | grep -q '^1'; do sleep 1; done"

ExecReload=sh -c "echo -n 0 > ${RUNTIME_DIRECTORY}/restart"
ExecReload=kill -HUP $MAINPID
ExecReload=timeout 60 sh -c "while ! head -c1 ${RUNTIME_DIRECTORY}/restart | grep -q '^1'; do sleep 1; done"

SuccessExitStatus=143

[Install]
WantedBy=multi-user.target