systemctl: avoid bumping NOFILE rlimit unless needed
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Apr 2015 01:47:20 +0000 (20:47 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Apr 2015 01:47:20 +0000 (21:47 -0400)
commit40acc203c043fd419f3c045dc6f116c3a28411d8
tree90225de6df71dac9ace80ecb466dc5bbbe337f9d
parent813a71a206f9f8dc7f824299e94404f8bfdafd91
systemctl: avoid bumping NOFILE rlimit unless needed

We actually only use the journal when showing status. Move setrlimit call
so it is only called for status.

https://bugzilla.redhat.com/show_bug.cgi?id=1184712
src/systemctl/systemctl.c