diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2015-04-02 16:05:06 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2015-04-02 16:25:01 +0900 |
commit | 1aaf71daa5f61b8dea14047b17ccf5c425bf497e (patch) | |
tree | 069fd4fa7e5fbac7d38ee00be1d43852c5aec142 /units | |
parent | ac0430e6fa7b28074acd74258a4e5f339379e077 (diff) | |
download | system-plugin-1aaf71daa5f61b8dea14047b17ccf5c425bf497e.tar.gz system-plugin-1aaf71daa5f61b8dea14047b17ccf5c425bf497e.tar.bz2 system-plugin-1aaf71daa5f61b8dea14047b17ccf5c425bf497e.zip |
system-plugin: Generate tizen environment service file
Some important daemons need system-level shared environment variables
such as DISPLAY. For this purpose, this patch generates the Environment
file for system daemon.
Change-Id: I995852d6537fbe6932ffff801b5f9e28635a76f4
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Diffstat (limited to 'units')
-rw-r--r-- | units/tizen-system-env.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/units/tizen-system-env.service b/units/tizen-system-env.service new file mode 100644 index 0000000..dc4e188 --- /dev/null +++ b/units/tizen-system-env.service @@ -0,0 +1,11 @@ +[Unit] +Description=Generate environment from /etc/profile.d +DefaultDependencies=no +Before=basic.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_|USER|MAIL|LOGNAME)=" > /run/tizen-system-env' + +[Install] +WantedBy=basic.target |