How to execute systemctl command asynchronously

Execute systemctl command asynchronously and do not wait for its completion. ...

January 23, 2023 · milosz · systemd

How to configure systemd service as regular user

Configure systemd service as regular user. ...

January 20, 2023 · milosz · systemd

How to start interactive shell using systemd machine manager

Start interactive shell using systemd machine manager. ...

January 11, 2023 · milosz · systemd

How to use docker-compose with systemd

Use systemd to start docker-compose services. ...

How to create persistent sysfs configuration using systemd

Create persistent sysfs configuration using systemd which can replace sysfsutils. ...

November 18, 2022 · milosz · systemd

How to locate modified systemd unit configuration files

Locate modified systemd unit configuration files. ...

November 4, 2022 · milosz · systemd

How to determine when service was started

Determine when systemd service was started. ...

October 24, 2022 · milosz · systemd

How to display active but disabled systemd services

Display active but disabled systemd services. ...

How to access service socket as a regular user

Create an exception for a regular user to access service socket using systemd. ...

How to create watchdog for systemd service

Create a software watchdog for systemd service. ...

How to display systemd journal for specific service since it started

Display systemd journal for specific service since it started. ...

How to determine when service was started and stopped using the systemd journal

Determine when the service was started and stopped using the systemd journal. ...

How to display boot times and uptime using systemd journal

Display when the operating system was booted and calculate uptime using the systemd journal. ...

How to delay the start of the systemd service

Delay the start of the systemd service at boot. ...

How to alter memory allocation pool for Kafka and ZooKeeper

Alter memory allocation pool for Kafka and ZooKeeper. ...

How to disable GC Logging for Kafka and bundled ZooKeeper

Disable GC Logging for Kafka and bundled ZooKeeper. ...

How to log systemd service state changes

Log systemd service state changes using rsyslog. ...

How to get service PID using systemctl

Use systemctl to get process identifier for specified service. ...

How to manage systemd services remotely

Manage systemd services remotely over SSH protocol. ...

How to restart service on every configuration change

Monitor file system events to restart service on every configuration change. ...

How to log specific Varnish requests

Use varnishlog to log specific Varnish requests. ...

How to use virtual memory filesystem to store Varnish Shared memory Log

Varnish Shared memory Log can put a major strain on the disk (I/O write operations). The solution is to store it on the virtual memory filesystem. ...

How to restart systemd service in case of failure

Configure systemd service to be restarted in case of failure. ...

How to unmount stale NFS share

Unmount not accessible NFS share that still has open files. ...

How to start service after the system time has been synchronized

Ensure that specific service is started after the system time has been synchronized. ...

How to prevent systemd service start operation from timing out

Specify systemd startup timeout option to prevent service start operation from timing out. ...

How to modify systemd service configuration

Modify systemd service configuration by using drop-in files, which is useful for automation when using ansible or any other provisioning, configuration management, and deployment utility. ...

How to mount NFS share using systemd

This is an extension to an older blog post on how to mount WebDAV share using systemd as this proved to be a very reliable method that is easy to mark as a dependency for other services. ...

How to update system time using systemd

Update the system time using systemd as a NTP client. ...

How to make iptables configuration persistent using systemd

Make iptables configuration persistent using systemd file with additional possibility to disable firewall after defined period of time. ...

How to mount WebDAV share using systemd

You can check my earlier blog post on how to mount WebDAV share using command-line or fstab (file systems table), but you are not limited to these two options as you can use systemd to take care of the whole process and automount WebDAV resource on demand. ...

How to use old network device naming convention

It is a matter of personal preference whether you use current or former network device naming convention. I am more accustomed to the latter and will configure the operating system to retain the old behavior. ...

How to set NOOP scheduler at system boot

There are many different ways to set NOOP scheduler on the first hard drive at system boot. I have decided to use simple systemd service, but alternatively you can use udev to automatically configure every SSD device (see References section). ...

How to set PowerTOP options at boot time

Today, I will show you how to set all tunable PowerTOP options at boot time using systemd service. ...