So, the other day, I wanted to have squid store its pid in the regular ‘var/run’ directory. Good simple enough – just add the following to “/etc/squid/squid.conf” :
and create the /var/run/squid directory. Simple, hold on not so fast. Reboot and psssst.. ‘/var/run/squid’ is gone. Finally found that /var/run is handled by systemd-tmpfiles and thus you need to do this as well:
d /run/squid 700 squid squid
So, basically you need to tell tmpfiles to create the squid directory as well.. How complicated things are becoming 🙂
Just in case you need it, you can get the journalctl entries from systemd in the web page.
First install :
yum install systemd-journal-gateway
Once you have done this you can get the journal entries with wget as well with
or if you prefer, you can browse with a browser at http://localhost:19531/. It has a nice little interface for browsing the entries, nothing too fancy but just sufficient.
If you are looking for the source of a mount and the various options used in the mount, then the quickest way to get that is ::
By default, with no parameters, it lists all the mounts in a tree like view and all the options used to mount the path. It also lists the source of the mount.
By default again, it uses some capabilities of the terminal to show the tree which you can disable with the option “-a”.
You can check the man page for more information on this command, it has some pretty good examples as well.
And just in case, you are unable to find the package (util-linux) containing the command:
sudo yum install util-linux