Systemd
systemctl enable and start service
2018/09/10
Most of the times when I want to enable the service, I find myself enabling it immediately or it is vice versa. So, the commands I used to use were: systemctl enable sshd.service systemctl start …
systemd – start service when you enable it
2017/03/13
More often than not for any service, I end up doing : systemctl enable <service> systemctl start <service> But there is shorcut to this. In systemctl command when you enable the service, …
journalctl command to see kernel messages
2017/01/30
Sometimes, there are just too many messages in journalctl output and it becomes a mystery game to search for the messages you are looking for. But luckily you do not need to use grep to find the right …
PID File for squid in Fedora – 21 ( Fedora.next)
2015/03/24
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” : […] pid_filename …
get systemd journal entries on web interface.
2013/12/12
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 …
findmnt – find all the mounts and their source
2013/09/16
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 :: findmnt By default, with no parameters, it lists all the mounts in a …
Find directory/file with inode number
2013/09/10
Couple of days back, I was getting the following error: […] Directory inode 2362521 has an unallocated block #245823. Allocate? […] And this continued for hours together and I was in a …
systemadm – simpler way to manage the service files for systemd
2012/04/17
Once the systemd unit and service files have come into being, understanding of the system services have changed a little bit and it might require some time to understand the cli tools for managing …