summaryrefslogtreecommitdiff
path: root/units/tizen-generate-env.service.m4
blob: da78852a83d71adbf85f01719f866e1fe4a647a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Generate environment from /etc/profile.d
DefaultDependencies=no
After=opt.mount
Before=basic.target

[Service]
Type=oneshot
ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_)=" > /run/tizen-mobile-env'
ExecStartPost=/usr/bin/chsmack -a "_" /run/tizen-mobile-env
m4_ifdef(`SMACK_LABEL',
SmackProcessLabel=system-plugin-common::script
)m4_dnl

[Install]
WantedBy=basic.target