X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=sdk%2Fdeploy%2Fargeo-init%2Fusr%2Flib%2Fsystemd%2Fsystem%2Fargeo%40.service;h=1bdf8c8277c9e5eafcadf8b202e2f00c01b734e9;hb=f08e1285ad0fe508126e946eff8216dae5f288f4;hp=91d77b608476ff532334bd43e389ff47756a92ef;hpb=ce570dcb5cc1721b1445427cba8c0151413d8f72;p=lgpl%2Fargeo-commons.git diff --git a/sdk/deploy/argeo-init/usr/lib/systemd/system/argeo@.service b/sdk/deploy/argeo-init/usr/lib/systemd/system/argeo@.service index 91d77b608..1bdf8c827 100644 --- a/sdk/deploy/argeo-init/usr/lib/systemd/system/argeo@.service +++ b/sdk/deploy/argeo-init/usr/lib/systemd/system/argeo@.service @@ -1,6 +1,6 @@ [Unit] Description=Argeo node %I -After=network.target +After=network-online.target Wants=postgresql.service [Service] @@ -11,7 +11,10 @@ ConfigurationDirectory=argeo.d/%I CacheDirectory=argeo.d/%I WorkingDirectory=/var/lib/argeo.d/%I -ExecStart=java \ +Environment=JVM=java +Environment=JVM_OPTS= + +ExecStart=${JVM} ${JVM_OPTS} \ -Dosgi.configuration.cascaded=true \ -Dosgi.sharedConfiguration.area=/etc/argeo.d/%I/ \ -Dosgi.sharedConfiguration.area.readOnly=true \ @@ -24,8 +27,15 @@ ExecStart=java \ @/etc/argeo.d/jvm.args \ @${CONFIGURATION_DIRECTORY}/jvm.args \ @/usr/share/argeo/jvm.args + # Exit codes of the JVM when SIGTERM or SIGINT have been caught: SuccessExitStatus=143 130 +CPUAccounting=true +MemoryAccounting=true +TasksAccounting=true +IOAccounting=true +IPAccounting=true + [Install] WantedBy=multi-user.target