summaryrefslogtreecommitdiffstats
path: root/net-nds/pamldapd/files/pamldapd.initd
blob: 1c0155ca57eebd6789957ac96353ae45b1a649a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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/pamldapd.log"
command_background=true
command_user="pamldapd:pamldapd"
output_log="/var/log/pamldapd/stdout.log"
error_log="/var/log/pamldapd/stdout.log"
pidfile=/var/run/pamldapd.pid
umask=0
start_pre() {
	checkpath -d -m 0775 -o pamldapd:pamldapd /var/run/pamldapd
}