summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/data/opt/openslx/scripts/includes/check_lpd.inc
blob: cfaf811ee0bd070289e34f26042aacbe755d9ab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
############################################
# Include: Checking whether lpd is running #
############################################

# Check if tcpsvd is running. Do this down here so we do not check
# immediately after trying to spawn it, as this could result in
# success even if it's not really working.

if ! kill -0 "$PID_LPD"; then
	slxlog "virt-lpd" "Could not start tcpsvd/lpd for virtual machine session"
	notify_user "Durcksystem" "Das Drucksystem konnte nicht initialisiert werden. Druckfunktion nicht verfügbar."
fi