From f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 4 Jun 2024 15:58:19 +0200 Subject: pamldapd added init.d script --- net-nds/pamldapd/files/pamldapd.initd | 9 +++++++++ net-nds/pamldapd/pamldapd-0.3.ebuild | 4 ++++ 2 files changed, 13 insertions(+) create mode 100755 net-nds/pamldapd/files/pamldapd.initd diff --git a/net-nds/pamldapd/files/pamldapd.initd b/net-nds/pamldapd/files/pamldapd.initd new file mode 100755 index 0000000..d171339 --- /dev/null +++ b/net-nds/pamldapd/files/pamldapd.initd @@ -0,0 +1,9 @@ +#!/sbin/openrc-run +name="pamldapd daemon" +description="Simple LDAP server, uses PAM as backend" +command=/usr/bin/pamldapd +command_args="-c /etc/pamldapd.json -l /var/log/pamldapd.log" +command_background="yes" +command_user="pamldapd:pamldapd" +output_log="/var/log/pamldapd/stdout.log" +error_log="/var/log/pamldapd/stdout.log" diff --git a/net-nds/pamldapd/pamldapd-0.3.ebuild b/net-nds/pamldapd/pamldapd-0.3.ebuild index 11365aa..db8c233 100644 --- a/net-nds/pamldapd/pamldapd-0.3.ebuild +++ b/net-nds/pamldapd/pamldapd-0.3.ebuild @@ -29,6 +29,10 @@ src_compile() { } src_install() { + keepdir /var/log/pamldapd + fowners pamldapd:pamldapd /var/log/pamldapd + fperms 750 /var/log/pamldapd + newinitd "${FILESDIR}/pamldapd.initd" pamldapd dobin pamldapd default } -- cgit v1.2.3