diff options
author | Sebastian Proca <florentin.proca@windriver.com> | 2012-05-08 19:19:45 +0300 |
---|---|---|
committer | Florin Sarbu <florin.sarbu@windriver.com> | 2012-05-16 15:46:24 +0300 |
commit | c1a0f05f1b67592f74c3ca1f4ab773168ec3e33c (patch) | |
tree | 2780661cc98ba554629cbfc3c95f60c4111cb57c | |
parent | 72d691b158cf54c55921383b855ca284b5568cc5 (diff) | |
download | meta-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.bbappend | 16 | ||||
-rw-r--r-- | recipes-support-ivi/ecryptfs-utils/files/ecryptfs.service | 12 |
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 + |