aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Proca <florentin.proca@windriver.com>2012-05-08 19:19:45 +0300
committerFlorin Sarbu <florin.sarbu@windriver.com>2012-05-16 15:46:24 +0300
commitc1a0f05f1b67592f74c3ca1f4ab773168ec3e33c (patch)
tree2780661cc98ba554629cbfc3c95f60c4111cb57c
parent72d691b158cf54c55921383b855ca284b5568cc5 (diff)
downloadmeta-ivi-c1a0f05f1b67592f74c3ca1f4ab773168ec3e33c.tar.gz
meta-ivi-c1a0f05f1b67592f74c3ca1f4ab773168ec3e33c.tar.bz2
meta-ivi-c1a0f05f1b67592f74c3ca1f4ab773168ec3e33c.zip
ecryptfs-utils: add service file for systemd usage
ecryptfs-utils could not be launched as a service because systemd could not access ecryptfs.service Signed-off-by: Sebastian Proca <Florentin.Proca@windriver.com>
-rw-r--r--recipes-support-ivi/ecryptfs-utils/ecryptfs-utils_96.bbappend16
-rw-r--r--recipes-support-ivi/ecryptfs-utils/files/ecryptfs.service12
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils_96.bbappend b/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils_96.bbappend
new file mode 100644
index 0000000..6146aa1
--- /dev/null
+++ b/recipes-support-ivi/ecryptfs-utils/ecryptfs-utils_96.bbappend
@@ -0,0 +1,16 @@
+
+# Find "files" directory
+
+FILESEXTRAPATHS := "${THISDIR}/files"
+
+SRC_URI_append = " file://ecryptfs.service"
+
+PACKAGES =+ "${PN}-systemd"
+
+FILES_${PN}-systemd = "/lib/systemd/system/"
+
+do_install_append() {
+ mkdir -p ${D}/lib/systemd/system
+ install -m 644 ${WORKDIR}/ecryptfs.service ${D}/lib/systemd/system
+}
+
diff --git a/recipes-support-ivi/ecryptfs-utils/files/ecryptfs.service b/recipes-support-ivi/ecryptfs-utils/files/ecryptfs.service
new file mode 100644
index 0000000..ba12aa3
--- /dev/null
+++ b/recipes-support-ivi/ecryptfs-utils/files/ecryptfs.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=A userspace daemon that runs as the user perform file operations under the eCryptfs mount point
+After=udev.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ecryptfsd
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+