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