Change MainPID of user@service 07/98407/3 accepted/tizen/3.0/common/20161122.195027 accepted/tizen/3.0/ivi/20161122.124236 accepted/tizen/3.0/mobile/20161122.124143 accepted/tizen/3.0/tv/20161122.124213 accepted/tizen/3.0/wearable/20161122.124227 submit/tizen_3.0/20161118.041243
authorKunhoon Baik <knhoon.baik@samsung.com>
Thu, 17 Nov 2016 07:26:34 +0000 (16:26 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Fri, 18 Nov 2016 04:32:19 +0000 (13:32 +0900)
commit5054878c415b21ba818869394aea9fbe0bcdfdf3
treee8fa26fda40d7bc9aca47baff4d8d2c029a4874f
parent863335a0dec22abbc9d2444e9031db15b6822707
Change MainPID of user@service

systemd-user-helper helps to launch systemd user session.
Thus, MainPID should be changed to systemd user session for keeping original behavior like stop operation.
This patch changes the MainPID to systemd user session by using pidfile and forking type.

Change-Id: Id8dc3daa71c18914b79e218043705fe5e167d14f
packaging/system-plugin.spec
src/systemd-user-helper/systemd-user-helper.c