]> git.argeo.org Git - lgpl/argeo-commons.git/blob - system/argeo@.service
Prepare next development cycle
[lgpl/argeo-commons.git] / system / argeo@.service
1 [Unit]
2 Description=Argeo node %I
3 After=network-online.target
4 Wants=postgresql.service
5
6 [Service]
7 Type=simple
8
9 User=daemon
10 Group=daemon
11
12 StateDirectory=argeo.d/%I
13 LogsDirectory=argeo.d/%I
14 ConfigurationDirectory=argeo.d/%I
15 CacheDirectory=argeo.d/%I
16 WorkingDirectory=/var/lib/argeo.d/%I
17
18 ExecStart=java \
19 -Dosgi.configuration.cascaded=true \
20 -Dosgi.sharedConfiguration.area=/etc/argeo.d/%I/ \
21 -Dosgi.sharedConfiguration.area.readOnly=true \
22 -Dosgi.configuration.area=${STATE_DIRECTORY}/state/ \
23 -Dosgi.instance.area=${STATE_DIRECTORY}/data/ \
24 -Dargeo.node.repo.indexesBase=${CACHE_DIRECTORY}/indexes \
25 -Declipse.ignoreApp=true \
26 -Dosgi.noShutdown=true \
27 -Dorg.eclipse.equinox.http.jetty.autostart=false \
28 @/etc/argeo.d/jvm.args \
29 @${CONFIGURATION_DIRECTORY}/jvm.args \
30 @/usr/share/argeo/jvm.args
31
32 # Exit codes of the JVM when SIGTERM or SIGINT have been caught:
33 SuccessExitStatus=143 130
34
35 CPUAccounting=true
36 MemoryAccounting=true
37 TasksAccounting=true
38 IOAccounting=true
39 IPAccounting=true
40
41 [Install]
42 WantedBy=multi-user.target