Alternc
3.2
Alternc logiel libre pour l'hébergement
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
lxc_stopexpired.php
Go to the documentation of this file.
1
#!/usr/bin/php -q
2
<?php
3
/*
4
$Id: do_actions.php,v 1.0 2013/04/19 13:40:32 axel Exp $
5
----------------------------------------------------------------------
6
AlternC - Web Hosting System
7
Copyright (C) 2002 by the AlternC Development Team.
8
http://alternc.org/
9
----------------------------------------------------------------------
10
Based on:
11
Valentin Lacambre's web hosting softwares: http://altern.org/
12
----------------------------------------------------------------------
13
LICENSE
14
15
This program is free software; you can redistribute it and/or
16
modify it under the terms of the GNU General Public License (GPL)
17
as published by the Free Software Foundation; either version 2
18
of the License, or (at your option) any later version.
19
20
This program is distributed in the hope that it will be useful,
21
but WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
GNU General Public License for more details.
24
25
To read the license please visit http://www.gnu.org/copyleft/gpl.html
26
----------------------------------------------------------------------
27
Original Author of file: Alan Garcia
28
Purpose of file: Shutdown expired VMs
29
----------------------------------------------------------------------
30
*/
31
require_once(
"/usr/share/alternc/panel/class/config_nochk.php"
);
32
33
$admin->stop_if_jobs_locked();
34
35
# Be super user
36
#$mem->setid(2000);
37
$admin->enabled=1;
38
39
# Stop expired vms
40
$lxc->stop_expired();
code
alternc
src
lxc_stopexpired.php
Generated on Mon Mar 24 2014 17:14:20 for Alternc by
1.8.1.2