aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoor <noor_ahsan@mentor.com>2013-06-19 15:53:31 +0500
committerFlorin Sarbu <florin.sarbu@windriver.com>2013-06-21 08:19:50 +0300
commit7a6be6eb5aa091312f41064cd70b722f49208c22 (patch)
treeb11293904ef3012278650da61e774667c85c8bef
parent68c6dcd07f7ff93df1ce070fb90e946a4eee42fc (diff)
downloadmeta-ivi-7a6be6eb5aa091312f41064cd70b722f49208c22.tar.gz
meta-ivi-7a6be6eb5aa091312f41064cd70b722f49208c22.tar.bz2
meta-ivi-7a6be6eb5aa091312f41064cd70b722f49208c22.zip
ecryptfs-utils: Modify systemd service file to 'simple'.
ecryptfsd is a resident program, i.e. daemon. According to systemd documentation, Type=oneshot/RemainAfterExit=yes should be used for programs that do not remain working after exit. But for daemons we should use Type=forked to indicate that the service remains running in background. ecryptfs provides option -f to run in foreground. This option is preferred when the service is started from init/systemd. That is why we use Type=simple (default) to indicate that the service runs in foreground. To manage the service properly systemd uses its type. E.g. if ecryptfsd silently dies, systemd will recognize its failure in case of simple or forked, but not in case of oneshot. Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com> Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
-rw-r--r--recipes-support-ivi/ecryptfs-utils/ecryptfs-utils/ecryptfs.service4
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils/ecryptfs.service b/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils/ecryptfs.service
index ba12aa3..52f3397 100644
--- a/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils/ecryptfs.service
+++ b/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils/ecryptfs.service
@@ -3,9 +3,7 @@ Description=A userspace daemon that runs as the user perform file operations und
After=udev.service
[Service]
-Type=oneshot
-ExecStart=/usr/bin/ecryptfsd
-RemainAfterExit=yes
+ExecStart=/usr/bin/ecryptfsd -f
[Install]
WantedBy=multi-user.target