From 17c3a03ec3a946049ec6d2cc259d235c93259be9 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 27 Mar 2014 16:39:44 +0000 Subject: [PATCH] Shoot lxc stopexpired --- .gitattributes | 1 - debian/alternc.cron.d | 2 -- src/lxc_stopexpired.php | 40 ---------------------------------------- 3 files changed, 43 deletions(-) delete mode 100755 src/lxc_stopexpired.php diff --git a/.gitattributes b/.gitattributes index 5cdc900d..2e6b2634 100644 --- a/.gitattributes +++ b/.gitattributes @@ -653,7 +653,6 @@ src/generate_apache_conf.php -text src/generate_bind_conf.php -text src/inotify_do_actions.sh -text src/inotify_update_domains.sh -text -src/lxc_stopexpired.php -text src/mail_dodelete.php -text src/mem_add -text src/mem_del -text diff --git a/debian/alternc.cron.d b/debian/alternc.cron.d index e6ce2f96..93c9614e 100644 --- a/debian/alternc.cron.d +++ b/debian/alternc.cron.d @@ -34,5 +34,3 @@ # Every 20 minutes, do actions 00,20 * * * * root /usr/lib/alternc/do_actions.php -# Every hour, stop expired VMs -10 * * * * alterncpanel /usr/lib/alternc/lxc_stopexpired.php diff --git a/src/lxc_stopexpired.php b/src/lxc_stopexpired.php deleted file mode 100755 index 195ab504..00000000 --- a/src/lxc_stopexpired.php +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/php -q -stop_if_jobs_locked(); - -# Be super user -#$mem->setid(2000); -$admin->enabled=1; - -# Stop expired vms -$lxc->stop_expired();