From 7a6be6eb5aa091312f41064cd70b722f49208c22 Mon Sep 17 00:00:00 2001 From: Noor Date: Wed, 19 Jun 2013 15:53:31 +0500 Subject: 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 Signed-off-by: Noor Ahsan --- recipes-support-ivi/ecryptfs-utils/ecryptfs-utils/ecryptfs.service | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit