Tags: systemd

woodland-656969_1920.jpg

systemd
Sockets can be somewhat hard to get right, but using systemd's socket units, you can make systemd do the heavy lifting.

The End of the Road: systemd's "Socket" Units

Sockets are used so that two different processes can share data or for shuttling information from one machine to another over the network. They are extremely useful and the basis of things like FTP, real-time network chat systems, secure shells, and so on. For the fly-by programmer, sockets can be ...
Read 0 Comments

timer-analogue-1078057.jpg

timer
We continue our systemd tutorial, with some specific examples showing how you can best leverage systemd timer units.

Systemd Timers: Three Use Cases

In this systemd tutorial series, we have already talked about systemd timer units to some degree, but, before moving on to the sockets, let's look at three examples that illustrate how you can best leverage these units. Simple cron-like behavior This is something I have to do: collect popcon data...
Read 2 Comments

clock-650753_1920.jpg

timer
Learn how to create a timer that will start your game server with systemd.

Setting Up a Timer with systemd in Linux

Previously, we saw how to enable and disable systemd services by hand, at boot time and on power down, when a certain device is activated, and when something changes in the filesystem. Timers add yet another way of starting services, based on... well, time. Although similar to cron jobs, systemd...
Read 0 Comments

systemd-filesystem.png

systemd
This installment of our systemd series covers how to create a unit that starts a service when something changes in the filesystem.

Systemd Services: Monitoring Files and Directories

So far in this systemd multi-part tutorial, we’ve covered how to start and stop a service by hand, how to start a service when booting your OS and have it stop on power down, and how to boot a service when a certain device is detected. This installment does something different yet again and covers...
Read 0 Comments

Devuan 2.0 Is a Debian Fork for Linux Users Who Want to Avoid systemd

Devuan is a fork of Debian that eschews the Red Hat-developed systemd init system in favor of alternatives such as sysvinit, among others. Unlike the Mir vs. Wayland controversy, the use of systemd has impacted enterprise servers, which have highly customized init scripts that are challenging to...
Read 0 Comments

webcam.png

systemd
Paul Brown shows how to use systemd to start and stop a USB webcam as a simple surveillance system.

Systemd Services: Reacting to Change

I have one of these Compute Sticks (Figure 1) and use it as an all-purpose server. It is inconspicuous and silent and, as it is built around an x86 architecture, I don't have problems getting it to work with drivers for my printer, and that’s what it does most days: it interfaces with the shared...
Read 1 Comments

systemd-minetest-2.jpg

minetest
Paul Brown shows how to use systemd to run a server for games, web applications, or other purposes. Image courtesy: Minetest

Systemd Services: Beyond Starting and Stopping

In the previous article, we showed how to create a systemd service that you can run as a regular user to start and stop your game server. As it stands, however, your service is still not much better than running the server directly. Let's jazz it up a bit by having it send out emails to the players...
Read 1 Comments

minetest.png

minetest
Learn how to make simple systemd services to manage your own game server.

Writing Systemd Services for Fun and Profit

Let's say you want to run a games server, a server that runs Minetest, a very cool and open source mining and crafting sandbox game. You want to set it up for your school or friends and have it running on a server in your living room. Because, you know, if that’s good enough for the kernel mailing...
Read 4 Comments

How to Control Systemd Services on Remote Linux Server

Systemd system and services manager can be controlled using the systemctl command line utility. It enables you to manage systemd locally or on a remote Linux machine over the SSH protocol. In this short article, we will show you how to manage systemd system and service manager on a remote Linux...
Read 0 Comments

Containing System Services in Red Hat Enterprise Linux – Part 1

At the 2017 Red Hat Summit, several people asked me “We normally use full VMs to separate network services like DNS and DHCP, can we use containers instead?”. The answer is yes, and here’s an example of how to create a system container in Red Hat Enterprise Linux 7 today.    The Goal Create a...
Read 0 Comments

Pages

Click Here!