Changeset 20031 for trunk/Nebulous-Server/bin/neb-admin
- Timestamp:
- Oct 9, 2008, 1:41:47 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/bin/neb-admin (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/bin/neb-admin
r20030 r20031 3 3 # Copyright (C) 2005-2008 Joshua Hoblitt 4 4 # 5 # $Id: neb-admin,v 1.1 0 2008-10-09 23:27:44jhoblitt Exp $5 # $Id: neb-admin,v 1.11 2008-10-09 23:41:47 jhoblitt Exp $ 6 6 7 7 use strict; … … 51 51 # check to make sure that only one instance of neb-admin is running 52 52 my $pidfile = '/var/tmp/neb-admin'; 53 $SIG{TERM} = sub { unlink_pid_file($pidfile); exit(); };54 53 # abort if an instance is already running 54 END { unlink_pid_file($pidfile) }; 55 55 check_pid_file($pidfile); 56 56 create_pid_file($pidfile);
Note:
See TracChangeset
for help on using the changeset viewer.
