initial commit of file from CVS for e-smith-cvm-unix-local on Wed 12 Jul 08:50:15 BST 2023
This commit is contained in:
@@ -0,0 +1 @@
|
||||
localhost
|
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/cvm-unix/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/cvm-unix/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
7
root/etc/e-smith/db/configuration/migrate/cvm-unix
Normal file
7
root/etc/e-smith/db/configuration/migrate/cvm-unix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
my $cvm = $DB->get_prop('cvm-unix', 'status');
|
||||
return unless defined $cvm;
|
||||
$DB->set_prop('cvm-unix', 'status', 'enabled') unless $cvm eq "enabled";
|
||||
|
||||
}
|
||||
|
4
root/etc/e-smith/templates/etc/rsyslog.conf/32cvm
Normal file
4
root/etc/e-smith/templates/etc/rsyslog.conf/32cvm
Normal file
@@ -0,0 +1,4 @@
|
||||
#cvm
|
||||
:programname, startswith, "cvm" /var/log/cvm/cvm.log
|
||||
& stop
|
||||
|
@@ -0,0 +1,3 @@
|
||||
|
||||
enable cvm-unix.service
|
||||
|
13
root/etc/logrotate.d/cvm
Normal file
13
root/etc/logrotate.d/cvm
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/cvm/*.log {
|
||||
create 640 root root
|
||||
notifempty
|
||||
daily
|
||||
rotate 28
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
postrotate
|
||||
/usr/bin/systemctl restart cvm-unix
|
||||
endscript
|
||||
}
|
||||
|
Reference in New Issue
Block a user