summaryrefslogtreecommitdiffstats
path: root/conf/generate-unit-conf/service.inc
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-23 15:44:24 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-24 17:44:58 +0100
commit7998a472352c0272a90c66ab45c4c2758cd6040a (patch)
treede3fb484fa2bca0850354f611551b049083d1420 /conf/generate-unit-conf/service.inc
parent633ebe33015554a14b773053188e2faba0faff04 (diff)
Rework on systemd start of user sessions
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/generate-unit-conf/service.inc')
-rw-r--r--conf/generate-unit-conf/service.inc115
1 files changed, 0 insertions, 115 deletions
diff --git a/conf/generate-unit-conf/service.inc b/conf/generate-unit-conf/service.inc
deleted file mode 100644
index 7e8dd40..0000000
--- a/conf/generate-unit-conf/service.inc
+++ /dev/null
@@ -1,115 +0,0 @@
-dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
-;---------------------------------------------------------------------------------
-;---- M A I N P A R T O F T H E S E R V I C E ----
-;---------------------------------------------------------------------------------
-%begin systemd-unit
-
-# auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
-%nl
-
-[Unit]
-Description={{description}}
-X-AFM-description={{description}}
-X-AFM-name={{name.content}}
-X-AFM-shortname={{name.short}}
-X-AFM-id=TARGET
-X-AFM-version={{:version}}
-X-AFM-author={{author.content}}
-X-AFM-author-email={{author.email}}
-X-AFM-width={{width}}
-X-AFM-height={{height}}
-{{#icon}}
-X-AFM-icon={{:#metadata.install-dir}}/{{:src}}
-{{/icon}}
-X-AFM--ID={{:id}}
-X-AFM--target-name={{:#target}}
-X-AFM--content={{content.src}}
-X-AFM--type={{content.type}}
-X-AFM--wgtdir={{:#metadata.install-dir}}
-X-AFM--workdir=APP_DATA_DIR/{{:id}}
-%nl
-
-Wants=sockets.target
-
-# Adds check to smack
-ConditionSecurity=smack
-%nl
-
-# Automatic bound to required api
-{{#required-api}}
-{{#value=auto|ws}}
-BindsTo=UNIT_NAME_SOCKET_FOR({{name}})
-After=UNIT_NAME_SOCKET_FOR({{name}})
-{{/value=auto|ws}}
-{{/required-api}}
-%nl
-
-[Service]
-EnvironmentFile=-AFM_CONFIG_DIR/unit.env.d/*
-SmackProcessLabel=User::App::{{:id}}
-SuccessExitStatus=0 SIGKILL
-
-#PAMName=su
-User=%i
-Slice=user-%i.slice
-
-#CapabilityBoundingSet=
-#AmbientCapabilities=
-
-ON_PERM(:platform:no-oom, OOMScoreAdjust=-500)
-ON_PERM(:partner:real-time, IOSchedulingClass=realtime)
-ON_PERM(:public:display, SupplementaryGroups=display)
-ON_PERM(:public:syscall:clock, , SystemCallFilter=~@clock)
-%nl
-
-WorkingDirectory=-APP_DATA_DIR/{{:id}}
-ExecStartPre=/bin/mkdir -p APP_DATA_DIR/{{:id}}
-Environment=AFM_APP_INSTALL_DIR={{:#metadata.install-dir}}
-Environment=PATH=/usr/sbin:/usr/bin:/sbin:/bin:{{:#metadata.install-dir}}
-Environment=XDG_DATA_HOME=APP_DATA_DIR/{{:id}}
-Environment=XDG_CONFIG_HOME=APP_DATA_DIR/{{:id}}
-Environment=XDG_CACHE_HOME=APP_DATA_DIR/{{:id}}
-Environment=XDG_RUNTIME_DIR=/run/user/%i
-Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%i/bus
-Environment=LD_LIBRARY_PATH=$ORIGIN/lib
-
-IF_AGL_DEVEL
-; Needed to enable debug
-Environment=AFM_ID=TARGET
-EnvironmentFile=-/var/run/afm-debug/TARGET.env
-ENDIF
-
-%systemd-unit system
-%systemd-unit service UNIT_NAME_BASE
-
-SyslogIdentifier=afbd-TARGET
-StandardInput=null
-StandardOutput=journal
-StandardError=journal
-
-;---------------------------------------------------------------------------------
-;---- text/html application/vnd.agl.native application/vnd.agl.service ----
-;---------------------------------------------------------------------------------
-{{#content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}}
-include(binder.inc)
-{{/content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}}
-
-;---------------------------------------------------------------------------------
-;---- application/x-executable ----
-;---------------------------------------------------------------------------------
-{{#content.type=application/x-executable}}
-ExecStart={{:#metadata.install-dir}}/{{content.src}}
-{{/content.type=application/x-executable}}
-
-IF_PERM(:system:run-by-default)
-;---------------------------------------------------------------------------------
-; auto start
-;---------------------------------------------------------------------------------
-[Install]
-WantedBy=default.target
-%systemd-unit wanted-by agl-user-session@.service
-ENDIF
-
-%end systemd-unit
-
-