/usr/share/ltsp/init-ltsp.d/50-cron is in ltsp-client-core 5.3.7-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | CRON_FILE=/etc/cron.d/ltsp
if [ ! -w "/etc/cron.d" ]; then
echo "Warning: /etc/cron.d is not writeable."
return 1
fi
if [ -n "$SHUTDOWN_TIME" ] ; then
echo $SHUTDOWN_TIME | awk -F : '{print $2" "$1" * * * root test ! -S \"$(ls -1 /var/run/ldm_socket_* | head -1)\" && PATH=\$PATH:/sbin/ poweroff" }' >> $CRON_FILE
fi
env | sed -n 's/^CRONTAB_[0-9][0-9]=//p' >> $CRON_FILE
|