Tag Info

Hot answers tagged

5

You can change this behaviour if you edit secure tmp option in /lib/systemd/system/mariadb.service. systemctl stop mariadb next edit /lib/systemd/system/mariadb.service as you change PrivateTmp to false: # Place temp files in a secure directory, not /tmp PrivateTmp=false # default is true and finally: systemctl daemon-reload systemctl start mariadb ...


4

Is there a command which would demonstrate where this link is derived from? The closest you can do is systemctl show -p Requires,Wants,Requisite,BindsTo,PartOf,Before,After cvol.service, which will show the resulting (effective) dependency lists for a given unit. is there a command, which would find the cycles and show where each link in the cycle ...


4

lsof doesn't show anything with /dev/fb0 open. It won't. There's a terminal emulator program built into the Linux kernel. It doesn't manifest as a running process with open file handles. It's layered on top of the framebuffer and the input event subsystem, which it uses internal kernel interfaces to access. It presents itself to application-mode ...


3

As far as I know, systemd won't deal with this particularly well. As I understand it, you want to override the behavior of sshd.service, right? Luckily for you, systemd is designed for this kind of thing. Simply put your service definition in /etc/systemd/system/ssh.service, execute systemctl daemon-reload to reload unit files, and systemd will ...


3

It is printed to the journal. You can read it with journalctl | grep Suspend: Mar 31 15:28:29 Shiv systemd[1]: Started Suspend.


3

The self maintenance method is to vacuum the logs by size or time. Retain only the past two days: journalctl --vacuum-time=2d Retain only the past 500 MB: journalctl --vacuum-size=500M man journalctl for more information.


2

Just add all needed commands to sudoers separately: %webteam cms051=/usr/bin/systemctl restart httpd.service %webteam cms051=/usr/bin/systemctl stop httpd.service %webteam cms051=/usr/bin/systemctl start httpd.service %webteam cms051=/usr/bin/systemctl status httpd.service


2

The reason for this behavior is that the machine identifier in /etc/machine-id changes at every reboot. This starts a new logging directory under /var/log/journal. Old logs can be viewed with the following command: journalctl --merge I'm still looking into the cause of the changing machine-id. Linode support is aware of the problem. I will update this ...


2

What command are you using to set the default? You can set it through the systemctl command: systemctl set-default multi-user.target Or by linking the default.target: ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'


2

The dependency graph in systemd is only kept in memory. There is no (binary) on-disk cache of loaded units or their properties whatsoever. But it seems that this have bad influence on performance. The unit files are completely re-read and the dependency graph is completely recalculated every time you issue systemctl daemon-reload or call an equivalent ...


2

Your systemd service unit is defaulting to Type=simple but your wrapper script is using the --daemon option. That is a readiness protocol mismatch. Readiness protocol mismatches cause services not to start correctly, or (more usually) to be (mis-)diagnosed by systemd as failing. The latter is happening here. Because you've overengineered your system, your ...


1

I believe what's going on is rsyslog is getting the message once from the application and then again from journald. Yep. The solution is to include this in /etc/systemd/journald.conf: ForwardToSyslog=no Why there wasn't this problem when using imjournal I'm not sure, but there is a hint in man journald.conf: ForwardToSyslog= [...] the ...


1

It's safest to itemize them as jofel suggests. If I wanted to allow someone to use a limited subset of a command's abilities, I would not trust wildcards in a sudoers line to do it. Even if the language was more expressive than shell globs, there are just too many corner cases to keep track of. The "service httpd *" line is relatively safe because (verify ...



Only top voted, non community-wiki answers of a minimum length are eligible