mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
9a766de5bd
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
20 lines
708 B
Bash
20 lines
708 B
Bash
#!/bin/bash
|
|
|
|
# Launch a per-user nss-tlsd process, with caching.
|
|
# Part of the SBo nss-tls build, by B. Watson, WTFPL licensed.
|
|
# Other distributions use systemd to launch this when a user logs
|
|
# in, we have to have users launch it from e.g. .bash_profile. This
|
|
# wrapper script simplifies the setup.
|
|
|
|
# Note that launching the user daemon isn't required, but since the
|
|
# system daemon doesn't do caching for security reasons, the user
|
|
# daemon might help performance a bit.
|
|
|
|
# Using setsid --fork here prevents this script from hanging around
|
|
# waiting for nss-tlsd to exit.
|
|
|
|
if [ -x /usr/sbin/nss-tlsd ]; then
|
|
[ -e ~/.cache/nss-tlsd.sock ] || setsid --fork /usr/sbin/nss-tlsd -c &>/dev/null &
|
|
fi
|
|
|
|
exit 0
|