diff options
author | Liang Li <liang.li@windriver.com> | 2016-04-28 10:49:41 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-04-28 09:20:51 -0400 |
commit | 4b15072ef54c570c0aee729abfb420c78a981ebc (patch) | |
tree | b0b5cbb49d6548ba3baf9fb72bacf115a7eb646d | |
parent | 05b5ca77a32df5bd68f6a09002e3e8161673bd9e (diff) | |
download | meta-cloud-services-4b15072ef54c570c0aee729abfb420c78a981ebc.tar.gz |
nss-pam-ldapd: add systemd support
Just add systemd style service file.
Signed-off-by: Liang Li <liang.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-support/nss-pam-ldapd/files/nslcd.service | 10 | ||||
-rw-r--r-- | recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.6.bb | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/recipes-support/nss-pam-ldapd/files/nslcd.service b/recipes-support/nss-pam-ldapd/files/nslcd.service new file mode 100644 index 0000000..bc67242 --- /dev/null +++ b/recipes-support/nss-pam-ldapd/files/nslcd.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=LDAP daemon | ||
3 | After=syslog.target network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/usr/sbin/nslcd | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.6.bb b/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.6.bb index 9f822f3..c6601fc 100644 --- a/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.6.bb +++ b/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.6.bb | |||
@@ -16,7 +16,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | |||
16 | 16 | ||
17 | SRC_URI = "\ | 17 | SRC_URI = "\ |
18 | http://arthurdejong.org/nss-pam-ldapd/${PN}-${PV}.tar.gz \ | 18 | http://arthurdejong.org/nss-pam-ldapd/${PN}-${PV}.tar.gz \ |
19 | file://nslcd.init\ | 19 | file://nslcd.init \ |
20 | file://nslcd.service \ | ||
20 | " | 21 | " |
21 | 22 | ||
22 | inherit autotools | 23 | inherit autotools |
@@ -45,9 +46,14 @@ do_install_append() { | |||
45 | sed -i -e 's/^uid nslcd/# uid nslcd/;' ${D}${sysconfdir}/nslcd.conf | 46 | sed -i -e 's/^uid nslcd/# uid nslcd/;' ${D}${sysconfdir}/nslcd.conf |
46 | sed -i -e 's/^gid nslcd/# gid nslcd/;' ${D}${sysconfdir}/nslcd.conf | 47 | sed -i -e 's/^gid nslcd/# gid nslcd/;' ${D}${sysconfdir}/nslcd.conf |
47 | sed -i -e 's/^base dc=example,dc=com/base ${LDAP_DN}/;' ${D}${sysconfdir}/nslcd.conf | 48 | sed -i -e 's/^base dc=example,dc=com/base ${LDAP_DN}/;' ${D}${sysconfdir}/nslcd.conf |
49 | |||
50 | install -d ${D}${systemd_unitdir}/system | ||
51 | install -m 0644 ${WORKDIR}/nslcd.service ${D}${systemd_unitdir}/system | ||
48 | } | 52 | } |
49 | 53 | ||
50 | inherit update-rc.d | 54 | inherit update-rc.d systemd |
51 | 55 | ||
52 | INITSCRIPT_NAME = "nslcd" | 56 | INITSCRIPT_NAME = "nslcd" |
53 | INITSCRIPT_PARAMS = "defaults" | 57 | INITSCRIPT_PARAMS = "defaults" |
58 | |||
59 | SYSTEMD_SERVICE_${PN} = "nslcd.service" | ||