Programa equivalente a WinOff para lliurex

Apagat automàtic dels equips de la sala de professorat

by Deleted user -
Number of replies: 0
Com que no puc fer aportacions al model d'aula, perquè aquest any descanse de la responsabilitat d'una de les tres aules que en tenim, intentaré fer una aportació com a responsable dels equips de la sala de professorat.

M'ha enviat el tècnic del SAI una línia per a modificar el crontab i que els equips (servidor i clients lleugers) s'apaguen a les 15:30. Diu que a ell li ha funcionat.

Si dilluns pel matí estan apagats us informe.

Us apegue la modificació:

"Ves al servidor y edita este fichero:

sudo gedit /etc/crontab

En este fichero te deberá aparecer los siguiente:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

Solo deberas poner esta línea en el fichero antes del corchete:
30 15 * * * root /sbin/shutdown -h now

Debera quedarte así el fichero una vez editado:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
30 15 * * * root /sbin/shutdown -h now
#

Guardas y cierras, y ya debería apagarse todos los días a las 15.30."