blob: 2a2d7d8533f52446614490d32311a18e6202d41c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="NSS TLS Daemon"
depend() {
use dns ldap net slapd logger
}
checkconfig() {
if [ ! -d /run/nss-tlsd ] ; then
checkpath -d -m 755 /run/nss-tlsd
fi
}
start_pre() {
checkconfig
}
start() {
ebegin "Starting NSS-TLSD"
start-stop-daemon --start --background --exec /usr/sbin/nss-tlsd --pidfile /var/run/nss-tlsd.pid
eend $?
}
stop() {
ebegin "Stopping NSS-TLSD"
start-stop-daemon --stop --exec /usr/sbin/nss-tlsd --pidfile /var/run/nss-tlsd.pid
eend $?
}
|