X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=dist%2Fargeo-node%2Frpm%2Fusr%2Flib%2Fsystemd%2Fsystem%2Fargeo%40.service;fp=dist%2Fargeo-node%2Frpm%2Fusr%2Flib%2Fsystemd%2Fsystem%2Fargeo%40.service;h=cbfd41ce373e594b4550d0f9452d78cd03cc9f15;hb=2d8a1995232d2a7e3333453b052fe1f39b0d1a25;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..cbfd41ce3 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,22 @@ 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 +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 \ + -Dlog4j.configuration="file:/etc/argeo.d/%I/log4j.properties" \ + @/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 +#ExecReload=/usr/sbin/argeoctl reload %I +# Exit codes of the JVM when SIGTERM or SIGINT have been caught: +SuccessExitStatus=143 130 +#ExecStopPost=/usr/bin/cat "$EXIT_STATUS" > /var/lib/argeo.d/%I/state/EXIT_STATUS [Install] WantedBy=multi-user.target