X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=usr%2Flib%2Fsystemd%2Fuser%2Fargeo.service;fp=usr%2Flib%2Fsystemd%2Fuser%2Fargeo.service;h=8534a94a06d4530f1175e99593d2a3def8771861;hb=40ecc06bea96cb976bc04abe84bc7ee6118ead25;hp=0000000000000000000000000000000000000000;hpb=06ebdcebd4ff662bbe43267d3ca9f379763fc013;p=gpl%2Fargeo-freed.git diff --git a/usr/lib/systemd/user/argeo.service b/usr/lib/systemd/user/argeo.service new file mode 100644 index 0000000..8534a94 --- /dev/null +++ b/usr/lib/systemd/user/argeo.service @@ -0,0 +1,31 @@ +[Unit] +Description=Argeo user runtime + +[Service] +Type=simple +StateDirectory=argeo/slc +LogsDirectory=argeo/slc +ConfigurationDirectory=argeo/slc +CacheDirectory=argeo/slc +WorkingDirectory=/usr/local/ +EnvironmentFile=/usr/local/etc/default/argeo + +# Optional files +ExecStartPre=/usr/bin/mkdir -p ${CONFIGURATION_DIRECTORY} +ExecStartPre=/usr/bin/touch ${CONFIGURATION_DIRECTORY}/jvm.args + +ExecStart=java \ +-Dosgi.framework.useSystemProperties=false \ +-Dosgi.noShutdown=true \ +-Declipse.ignoreApp=true \ +@etc/argeo/user/jvm.args \ +@${CONFIGURATION_DIRECTORY}/jvm.args \ +@lib/argeo/jvm.args \ +org.argeo.init.RuntimeManager \ +etc/argeo/user/slc + +# Exit codes of the JVM when SIGTERM or SIGINT have been caught: +SuccessExitStatus=143 130 + +[Install] +WantedBy=multi-user.target