mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
34 lines
646 B
Plaintext
34 lines
646 B
Plaintext
#!/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 $?
|
|
}
|