X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=sdk%2Fdeploy%2Fargeo-init%2Fusr%2Flib%2Fsystemd%2Fsystem%2Fargeo%40.service;h=2c69636acf74d88856d62a0cd8586594896665aa;hb=3b45f571938e0eb6803084aac3f2bd298e6026ba;hp=91d77b608476ff532334bd43e389ff47756a92ef;hpb=6211e86ec9bd6dfd4445fed12c1baa0e98314824;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..2c69636ac 100644 --- a/sdk/deploy/argeo-init/usr/lib/systemd/system/argeo@.service +++ b/sdk/deploy/argeo-init/usr/lib/systemd/system/argeo@.service @@ -1,10 +1,14 @@ [Unit] Description=Argeo node %I -After=network.target +After=network-online.target Wants=postgresql.service [Service] Type=simple + +User=daemon +Group=daemon + StateDirectory=argeo.d/%I LogsDirectory=argeo.d/%I ConfigurationDirectory=argeo.d/%I @@ -24,8 +28,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