aboutsummaryrefslogtreecommitdiff
path: root/etc/profile/01-catsitd-user.sh
blob: 69c1ab71514d10bead9792cdd5c3d8a022df9a5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# catsitd-user - see catsitd(8).

{ command -v catsitd-user >/dev/null 2>&1 && command -v catsitd >/dev/null 2>&1; } || return

if ! [ -f "${XDG_RUNTIME_DIR}"/catsitd-user-"${USER}".pid ] \
    || ! kill -0 $(cat "${XDG_RUNTIME_DIR}"/catsitd-user-"${USER}".pid); then
    catsitd-user -r 15000
fi