228 reputation
211
bio website cloudcabin.org
location Moscow, Russia
age 30
visits member for 3 years, 8 months
seen Dec 23 at 9:05

System administrator at Badoo Development, Moscow

Self-taught Linux admin, Perl and PostgreSQL enthusiast


Aug
29
comment cron ignores changes to /etc/crontab
The curious thing is read doesn't follow (unlike when I edit user's crontab)
Aug
29
comment cron ignores changes to /etc/crontab
strace -q -estat says it does
Aug
28
comment cron ignores changes to /etc/crontab
It's true, but, from man cron: Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified. Note that the Crontab(1) command updates the modtime of the spool directory whenever it changes a crontab. mtime of /etc/crontab does change when I edit it.
Aug
28
comment cron ignores changes to /etc/crontab
It's SLES 11.3, but it's sort of a lab machine and it's not eligible for tech support
Jun
6
comment SSH Colors Enabled, # Showing up in odd place
The system you log in to might not be aware of the terminal you use. If you see some weird behavior in the future, check out this document.
Jun
3
comment How to go about rotating logs which are arbitrary named and placed in deeply nested directories?
It might be part of solution.
Jun
2
comment How to go about rotating logs which are arbitrary named and placed in deeply nested directories?
Don't think so. It's not like I want to set some hard limit. Quite often some of them might need to write a large amount of data for a day or two, and it wouldn't affect the rest of developers. Managing quotas would be a hassle.
Jun
2
comment How to go about rotating logs which are arbitrary named and placed in deeply nested directories?
An interesting approach! I'll probably play with it, but I'm not sure it would detect all the files. On the other hand, yes, I can use a template for logrotate rules, that might work.
Jun
2
comment How to go about rotating logs which are arbitrary named and placed in deeply nested directories?
No, production is production and no such things are allowed there. I'm afraid that in this case I can't do much with communication, and it's not because I dislike communication.
May
22
comment df shows too much space on tmpfs
It would be allright if I had a real problem with this weird behavior. I should have double check things before asking, so let there be a comment for anyone who does something like this, but I think it's not actually an answer.
May
19
comment df shows too much space on tmpfs
Well what actually happened is the tmpfs partition was not mounted, but it was listed in mount, so df -h was reporting the usage of / instead, since it's the 'parent' partition of a directory which was supposed to be the mountpoint for tmpfs. Mount, on the other hand, lied to me: 'It is possible that files /etc/mtab and /proc/mounts don't match. The first file is based only on the mount command options, but the content of the second file also depends on the kernel and others settings'. I should have checked /proc/mounts, too.
May
19
comment df shows too much space on tmpfs
I am terribly sorry, remounting did actually help, I've just retried it just in case and all the magic is gone. Could the mods please close the question?
Mar
12
comment Learning Linux beginning from novice
I'd propose (maybe for later) setting up a mail and jabber server, a simple blog, dynamic DNS and such. For home - dlna, transmission + web interface, samba/nfs.
Mar
7
comment Check all domains served by a DNS server
Aww. Been thinking about my current setup where I control the DNS server.
Mar
7
comment Check all domains served by a DNS server
You might try an axfr if it's allowed.
Mar
7
comment Mail server: SASL authentication failure - Postfix + Dovecot + Mysql
How comes you have smtpd_sasl_type = cyrus in your main.cf and all cyrrus-related stuff commented out in your master.cf? Also, could this possibly help you? ubuntuforums.org/showthread.php?t=2168820
Mar
4
comment Export virtual machine list
Please be aware that cron jobs are not persistent between reboots and you'll have to modify /etc/rc.local.d/local.sh to rewrite crontab and restart crond every time. There are plenty of guides for this.
Mar
4
comment Export virtual machine list
In the new web client, which comes with vsphere 5.5, this can be done like this: select your hypervizor or cluster, go to related objects -> virtual machines and in the left bottom corner you'll see an export button. Click it, pick columns you want (you definitely want the 'Host' column among others) and then click 'generate CSV report' and then 'save'.
Feb
23
comment Puppet, hiera and erb - erb would not recognize array
What version of puppet do you run? I think omitting one pipe must not help and if it does I'm in trouble. I mean, in Ruby array.each do | i | is valid, so it should be valid in erb, too.
Feb
23
comment Puppet, hiera and erb - erb would not recognize array
It's 3.3.1. I belive the part of the problem is this (quoting puppetlabs docs): The lookup functions and the automatic parameter lookup always return the values of top-level keys in your Hiera data — they cannot descend into deeply nested data structures and return only a portion of them. To do this, you need to first store the whole structure as a variable, then index into the structure from your Puppet code or template. -- but it's still weird to me. It does see the type and it can render a template with the whole array but it can't index.