X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=dist%2Fargeo-node%2Frpm%2Fusr%2Flib%2Fsystemd%2Fsystem%2Fargeo%40.service;h=c631825a27b3a5228b1ec53ce56807c24b68e3b2;hb=5d054cdb34fbf20ab374bbc79fd612efc03e459b;hp=14c2ecdb3ab9ed1ae6ff01c6013961072bbb6c8d;hpb=99d4f816a0ced50c3733a02eae12738b5a61f03b;p=lgpl%2Fargeo-commons.git diff --git a/dist/argeo-node/rpm/usr/lib/systemd/system/argeo@.service b/dist/argeo-node/rpm/usr/lib/systemd/system/argeo@.service index 14c2ecdb3..c631825a2 100644 --- a/dist/argeo-node/rpm/usr/lib/systemd/system/argeo@.service +++ b/dist/argeo-node/rpm/usr/lib/systemd/system/argeo@.service @@ -5,17 +5,30 @@ Wants=postgresql.service [Service] Type=simple -ExecStart=/usr/sbin/argeoctl start %I -ExecReload=/usr/sbin/argeoctl reload %I -DynamicUser=true StateDirectory=argeo.d/%I LogsDirectory=argeo.d/%I ConfigurationDirectory=argeo.d/%I +CacheDirectory=argeo.d/%I +WorkingDirectory=/var/lib/argeo.d/%I -# Workaround to pass locations for systemd with version < 240 -Environment=INSTANCE_DIR=/var/lib/argeo.d/%I CONF_DIR=/etc/argeo.d/%I -#Environment="INSTANCE_DIR=$STATE_DIRECTORY" "CONF_DIR=$CONFIGURATION_DIRECTORY" -PassEnvironment=INSTANCE_DIR CONF_DIR +ExecStart=/usr/lib/jvm/jre-11/bin/java \ +-Dosgi.configuration.cascaded=true \ +-Dosgi.sharedConfiguration.area=/etc/argeo.d/%I \ +-Dosgi.sharedConfiguration.area.readOnly=true \ +-Dargeo.node.repo.indexesBase=/var/cache/argeo.d/%I/indexes \ +-Dorg.osgi.framework.bootdelegation=com.sun.jndi.ldap,com.sun.jndi.ldap.sasl,com.sun.security.jgss,com.sun.jndi.dns,com.sun.nio.file,com.sun.nio.sctp \ +-Declipse.ignoreApp=true \ +-Dosgi.noShutdown=true \ +-Dorg.eclipse.equinox.http.jetty.autostart=false \ +-Dosgi.bundles=org.argeo.osgi.boot@start \ +@/usr/share/argeo/jvm.args \ +@/etc/argeo.d/jvm.args \ +@/etc/argeo.d/%I/jvm.args \ +@/usr/share/osgi/boot/framework.args \ +-configuration /var/lib/argeo.d/%I/state \ +-data /var/lib/argeo.d/%I/data +# Exit codes of the JVM when SIGTERM or SIGINT have been caught: +SuccessExitStatus=143 130 [Install] WantedBy=multi-user.target