remove build-in logrotate feature and provide logrotate-script

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-10-09 16:23:59 +02:00
parent da0ae9040a
commit 6a76e8a53f
21 changed files with 213 additions and 146 deletions

View File

@@ -384,6 +384,22 @@ return Array(
'restart' => Array(
'sh /etc/rc.d/nscd restart'
)
),
'logrotate' => array(
'label' => 'Logrotate',
'commands_1' => array(
'cd /usr/ports/sysutils/logrotate/',
'make install clean clean-depends',
'touch /etc/logrotate.d/froxlor',
'chmod 644 /etc/logrotate.d/froxlor'
),
'files' => array(
'etc_logrotated_froxlor' => '/etc/logrotate.d/froxlor'
),
'commands_2' => array(
'# create cronjob-entry (daily-recommended)',
'0 2 * * * /usr/local/sbin/logrotate -f /etc/logrotate.d/froxlor'
)
)
)
)

View File

@@ -416,6 +416,21 @@ milter_default_action = accept" >> /etc/postfix/main.cf',
'restart' => Array(
'/etc/init.d/nscd restart'
)
),
'logrotate' => array(
'label' => 'Logrotate',
'commands_1' => array(
'emerge -av app-admin/logrotate',
'touch /etc/logrotate.d/froxlor',
'chmod 644 /etc/logrotate.d/froxlor'
),
'files' => array(
'etc_logrotated_froxlor' => '/etc/logrotate.d/froxlor'
),
'commands_2' => array(
'# emerge automatically adds a daily cronjob for logrotate',
'# you do not have to do anything else :)'
)
)
)
)

View File

@@ -395,6 +395,21 @@ return Array(
'restart' => Array(
'/etc/init.d/nscd restart'
)
),
'logrotate' => array(
'label' => 'Logrotate',
'commands_1' => array(
'apt-get install logrotate',
'touch /etc/logrotate.d/froxlor',
'chmod 644 /etc/logrotate.d/froxlor'
),
'files' => array(
'etc_logrotated_froxlor' => '/etc/logrotate.d/froxlor'
),
'commands_2' => array(
'# apt automatically adds a daily cronjob for logrotate',
'# you do not have to do anything else :)'
)
)
)
)

View File

@@ -397,6 +397,21 @@ return Array(
'restart' => Array(
'/etc/init.d/nscd restart'
)
),
'logrotate' => array(
'label' => 'Logrotate',
'commands_1' => array(
'apt-get install logrotate',
'touch /etc/logrotate.d/froxlor',
'chmod 644 /etc/logrotate.d/froxlor'
),
'files' => array(
'etc_logrotated_froxlor' => '/etc/logrotate.d/froxlor'
),
'commands_2' => array(
'# apt automatically adds a daily cronjob for logrotate',
'# you do not have to do anything else :)'
)
)
)
)

View File

@@ -394,6 +394,21 @@ return Array(
'restart' => Array(
'/etc/init.d/nscd restart'
)
),
'logrotate' => array(
'label' => 'Logrotate',
'commands_1' => array(
'apt-get install logrotate',
'touch /etc/logrotate.d/froxlor',
'chmod 644 /etc/logrotate.d/froxlor'
),
'files' => array(
'etc_logrotated_froxlor' => '/etc/logrotate.d/froxlor'
),
'commands_2' => array(
'# apt automatically adds a daily cronjob for logrotate',
'# you do not have to do anything else :)'
)
)
)
)

View File

@@ -398,6 +398,21 @@ return Array(
'/etc/init.d/nscd restart'
)
),
'logrotate' => array(
'label' => 'Logrotate',
'commands_1' => array(
'apt-get install logrotate',
'touch /etc/logrotate.d/froxlor',
'chmod 644 /etc/logrotate.d/froxlor'
),
'files' => array(
'etc_logrotated_froxlor' => '/etc/logrotate.d/froxlor'
),
'commands_2' => array(
'# apt automatically adds a daily cronjob for logrotate',
'# you do not have to do anything else :)'
)
),
'fcgid' => array(
'label' => 'FCGID',
'commands' => array(

View File

@@ -74,6 +74,6 @@ define('PACKAGE_LOCKED', 1);
define('PACKAGE_ENABLED', 2);
// VERSION INFO
$version = '0.9.29.1-dev2';
$version = '0.9.29.1-dev3';
$dbversion = '2';
$branding = '';