Posted in Linux commands

systemd, Part II: Using systemd as Normal User

In an earlier post we learned how to start a daemon with systemd. But it is annoying to handle a user daemon this way: type every time a sudo in front of the systemctl command. Let’s configure it, so that it can be used as a normal user.

Continue reading “systemd, Part II: Using systemd as Normal User”

Advertisements
Posted in Linux commands

systemd, Part I

For my sensor network I run a server process, which collects the data from several sensors. This is a sort of a daemon. In a first version it was started in a crontab with the time “@reboot”. But during the development I had to restart it every now and then: search the PID, kill it, start it in the background.

Isn’t there a better way? systemd to the rescue. In this first systemd post I will install a service file, so that the process can be started and stopped from the root account.

Continue reading “systemd, Part I”