How to check if systemd service configuration is outdated
Check if service configuration is outdated and needs a systemd daemon configuration reload.
Check if service configuration is outdated and needs a systemd daemon configuration reload.
Alter /tmp (tmpfs) size.
Escape filesystem path for systemd mounts.
Create lightweight container with Podman within a systemd-nspawn machine.
Create lightweight container using systemd.
Create on-demand local port forwarding with systemd and ssh.
Create SSH tunnel using systemd.
Expose any service on a port or socket with systemd.
Check environment variables for systemd service.
Detect used virtualization technology with systemd.
Initialize the machine ID.
Guarantee that the task is executed to catch up on a missed systemd schedule.
Enroll TPM2 token to LUKS2 encrypted volumes through systemd.
Execute command before service startup.
Prevent service from swapping.
Disable swap at boot using systemd.
While cron can be tricky for scheduling commands on specific weekday each month, systemd offers a straightforward solution.
Display whole systemctl output.
List every systemd unit.
Display systemd journal since system boot.
Execute systemctl command asynchronously and do not wait for its completion.
Configure systemd service as regular user.
Start interactive shell using systemd machine manager.
Use systemd to start docker-compose services.
Create persistent sysfs configuration using systemd which can replace sysfsutils.
Locate modified systemd unit configuration files.
Determine when systemd service was started.
Display active but disabled systemd services.
Create an exception for a regular user to access service socket using systemd.
Create a software watchdog for systemd service.
Display systemd journal for specific service since it started.
Determine when the service was started and stopped using the systemd journal.
Display when the operating system was booted and calculate uptime using the systemd journal.
Delay the start of the systemd service at boot.
Alter memory allocation pool for Kafka and ZooKeeper.
Disable GC Logging for Kafka and bundled ZooKeeper.
Log systemd service state changes using rsyslog.
Use systemctl to get process identifier for specified service.
Manage systemd services remotely over SSH protocol.
Monitor file system events to restart service on every configuration change.
Use varnishlog to log specific Varnish requests.
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.
Configure systemd service to be restarted in case of failure.
Unmount not accessible NFS share that still has open files.
Ensure that specific service is started after the system time has been synchronized.
Specify systemd startup timeout option to prevent service start operation from timing out.
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.
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.
Update the system time using systemd as a NTP client.
Make iptables configuration persistent using systemd file with additional possibility to disable firewall after defined period of time.
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.
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.
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).
Today, I will show you how to set all tunable PowerTOP options at boot time using systemd service.