--- /dev/null
+
+## OSGi system extensions
+org.osgi.framework.system.packages.extra=\
+sun.security.util,\
+sun.security.internal.spec,\
+sun.security.provider,\
+com.sun.net.httpserver,\
+com.sun.jndi.ldap,\
+com.sun.jndi.ldap.sasl,\
+com.sun.jndi.dns,\
+com.sun.security.jgss,\
+com.sun.nio.file,\
+com.sun.nio.sctp
+
+# Disable Equinox Jetty autostart
+org.eclipse.equinox.http.jetty.autostart=false
+
+osgi.framework.useSystemProperties=false
\ No newline at end of file
--- /dev/null
+argeo.osgi.sources=\
+a2+reference:///\
+?osgi=equinox\
+&crypto=fips\
+&swt=rap\
+
+argeo.osgi.start.2=\
+org.eclipse.equinox.http.servlet,\
+org.apache.felix.scr,\
+org.eclipse.equinox.console,\
+org.eclipse.rap.rwt.osgi,\
+
+argeo.osgi.start.3=\
+org.argeo.cms,\
+org.argeo.cms.swt.rap,\
+org.argeo.cms.swt.rcp,\
+org.argeo.cms.ee,\
+org.argeo.cms.lib.dbus,\
+org.argeo.cms.lib.sshd,\
+org.argeo.cms.lib.equinox,\
+org.argeo.cms.lib.jetty,\
--- /dev/null
+osgi.clean=true
\ No newline at end of file
--- /dev/null
+
+## OSGi system extensions
+org.osgi.framework.system.packages.extra=\
+org.argeo.init,\
+org.argeo.init.a2,\
+org.argeo.init.osgi,\
+sun.security.util,\
+sun.security.internal.spec,\
+sun.security.provider,\
+com.sun.net.httpserver,\
+com.sun.jndi.ldap,\
+com.sun.jndi.ldap.sasl,\
+com.sun.jndi.dns,\
+com.sun.security.jgss,\
+com.sun.nio.file,\
+com.sun.nio.sctp
+
+# Disable Equinox Jetty autostart
+org.eclipse.equinox.http.jetty.autostart=false
--- /dev/null
+osgi.console=2023
+osgi.clean=true
\ No newline at end of file
--- /dev/null
+
+argeo.osgi.sources=\
+a2+reference:///\
+?osgi=equinox\
+&include=org.argeo.tp\
+&include=org.argeo.tp.osgi\
+&include=org.argeo.tp.eclipse\
+&include=org.argeo.tp.httpd\
+&include=org.argeo.tp.sshd\
+&include=org.argeo.tp.sys\
+&include=org.argeo.cms\
+&include=org.argeo.slc\
+
+## Active modules
+argeo.osgi.start.2=\
+org.apache.felix.scr,\
+org.eclipse.equinox.console,\
+
+argeo.osgi.start.3=\
+org.argeo.cms,\
+org.argeo.cms.lib.dbus,\
+org.argeo.slc.cms,\
--- /dev/null
+# Whether we use a local deployment
+# /usr/$ARGEO_LOCAL/share
+# /usr/$ARGEO_LOCAL/etc
+# etc.
+#ARGEO_LOCAL=local
\ No newline at end of file
$(COPY) -r usr/libexec/* $(DESTDIR)$(libexecdir)
$(MAKE) -C sjbin install
systemctl daemon-reload
+
\ No newline at end of file
--- /dev/null
+# Force UTF-8 encoding
+-Dfile.encoding=UTF-8
+
+# Ensure OpenJDK and OpenJ9 are compatible
+-XX:+IgnoreUnrecognizedVMOptions
+
+-cp /usr/local/share/a2/osgi/equinox/org.argeo.tp.osgi/org.eclipse.osgi.3.18.jar:/usr/local/share/a2/org.argeo.cms/org.argeo.init.2.3.jar
\ No newline at end of file
WorkingDirectory=/var/lib/argeo.d/%I
ExecStart=java \
--Dfile.encoding=UTF-8 \
-Dosgi.configuration.cascaded=true \
-Dosgi.sharedConfiguration.area=/etc/argeo.d/%I/ \
-Dosgi.sharedConfiguration.area.readOnly=true \
-Dorg.eclipse.equinox.http.jetty.autostart=false \
@/etc/argeo.d/jvm.args \
@${CONFIGURATION_DIRECTORY}/jvm.args \
-@/usr/share/argeo/jvm.args
-
+@/usr/share/argeo/jvm.args \
+org.argeo.init.Service
+
# Exit codes of the JVM when SIGTERM or SIGINT have been caught:
SuccessExitStatus=143 130
--- /dev/null
+[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
#WorkingDirectory=
ExecStart=java \
--Dfile.encoding=UTF-8 \
-Dosgi.configuration.cascaded=true \
-Dosgi.sharedConfiguration.area=/etc/argeo.user.d/%I/ \
-Dosgi.sharedConfiguration.area.readOnly=true \
-Djava.library.path=/usr/lib/a2/swt/rcp/org.argeo.tp.swt/ \
@/etc/argeo.user.d/jvm.args \
@/etc/argeo.user.d/%I/jvm.args \
-@/usr/share/argeo/jvm.args
+@/usr/share/argeo/jvm.args \
+org.argeo.init.Service
+
# Exit codes of the JVM when SIGTERM or SIGINT have been caught:
SuccessExitStatus=143 130
--cp /usr/share/a2/osgi/equinox/org.argeo.tp.osgi/org.eclipse.osgi.3.18.jar:/usr/share/a2/org.argeo.cms/org.argeo.init.2.3.jar org.argeo.init.Service
\ No newline at end of file
+# Force UTF-8 encoding
+-Dfile.encoding=UTF-8
+
+# Ensure OpenJDK and OpenJ9 are compatible
+-XX:+IgnoreUnrecognizedVMOptions
+
+-cp /usr/share/a2/osgi/equinox/org.argeo.tp.osgi/org.eclipse.osgi.3.18.jar:/usr/share/a2/org.argeo.cms/org.argeo.init.2.3.jar
\ No newline at end of file