Projet

Général

Profil

Télécharger (234 octets) Statistiques
| Branche: | Tag: | Révision:

univnautes / etc / rc.halt @ master

1
#!/bin/sh
2

    
3
# $Id$
4

    
5
if ! /usr/bin/lockf -s -t 30 /tmp/config.lock /usr/bin/true; then
6
	echo "Cannot halt at this moment, a config write operation is in progress and 30 seconds have passed."
7
	exit -1
8
fi
9

    
10
sleep 1
11

    
12
/sbin/shutdown -p now
13

    
(53-53/103)