Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [systemd]

Systemd is a replacement for the classic init during boot.

0
votes
1answer
11 views

Is there any way to delete logs of a specific systemd service in linux?

After searching a bit, all I got is journalctl --vacuum-time.... However, this command doesn't delete service logs. So, how can I safely delete logs of a specific service from linux?
1
vote
0answers
7 views

How do I avoid to launch systemd user units on non-graphical user sessions?

I am currently deploying systemd user units which should be launched every time a user logins in. However, the service spawns an application that depends on the environment variable $DISPLAY. ...
0
votes
0answers
15 views

Disable Host Verification for Hadoop

I have set up Hadoop to run as a linux service in an AWS EC2 instance (deployed via an auto-scaling group) and have it run as a spark user. However, when I start it, I get the following message in ...
0
votes
1answer
26 views

How can I spawn my own program in a linux tty-session instead of the shell?

I want to spawn a little TUI program instead of the shell on a raspberry-pi on the standard tty (without x11 of course) Therefore I need to know how to switch of the starting of the standard-shell ...
0
votes
0answers
20 views

Cannot autostart mysqld from systemd on Debian Stretch after update

Problem with starting mariadb (mysqld 10.1.37-MariaDB-0+deb9u1) over systemd on Debian Stretch after latest update. Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux Syslog: # ...
1
vote
1answer
14 views

Redirecting the output of service in Ubuntu to Log files

I am on Ubuntu 16.04 and deployed a service in /etc/systemd/system. The service file booster.service contains [Unit] Description = booster After = network.target [Service] ExecStart =/opt/tech/...
1
vote
1answer
19 views

Raspberry Pi 3, Ubuntu Core 18, Mounting USB disk fails

I have Ubuntu Core running on a Raspberry 3 and I am trying to mount external USB disk and have followed the instructions on: Mount instructions When running the command igor-lopez@localhost:~$ ...
0
votes
1answer
83 views

Starting Tomcat 8.5 using systemd on Centos 7

I installed Tomcat 8.5 and I am able to start it successfully manually, for example: su tomcat startup.sh works properly and tomcat is able to serve on port 8080. I need to automate the startup, so ...
2
votes
0answers
36 views

uWSGI https server with systemd socket activation

I run a https web server, using uWSGI (version 2.0.14-debian; on a raspberry Pi with raspian / debian 9 stretch). For https, I have the following lines in configuration file: [uwsgi] ... protocol = ...
0
votes
0answers
25 views

Investigating why it takes a long time to stop a systemd service

I have written a custom systemd service to run Apache Airflow as a Linux service. The service works fine, but when I try to stop it (due to config file change) it takes about 2 minutes to stop the ...
0
votes
1answer
36 views

Systemd unit file only works for one instance name, not the other

There are two Minecraft servers running on my Debian server. In order to avoid all the busywork of manually coordinating multiple tmux sessions, I wrote a systemd unit file to do all of that for me: [...
0
votes
0answers
10 views

Ulimit in OpenSUSE and KDE

I use Opensuse Tumbleweed with KDE and trying to set core limit to unlimited. I added @users soft core unlimited @users hard core unlimited to /etc/security/limits.conf (my user is in users group), ...
1
vote
0answers
20 views

Systemd calendar interval, “Failed to parse calendar specification”

I'm on Ubuntu 16.04. When I try to use the time syntax show here (Mon..Fri) I get an error. It seems I have to use 'Mon-Fri'. $ sudo systemctl status mytouch.timer ● mytouch.timer - Runs mytouch ...
0
votes
0answers
18 views

systemctl list services filtering by property “Type”

I need to list all services in my system having a given [Service] Type. In other words, I need to list all services with property Type=, e.g. notify. All other types of services shall not be included ...
0
votes
1answer
24 views

systemctl list service filter by target

I can list host targets with: systemctl list-units --type=target And I can query the existing services with: systemctl list-units [--all] But I could not figure out how to list only the services ...
0
votes
0answers
25 views

systemd - How to create unit file for my java daemon?

I am trying to lanunch java daemon when system start in Ubuntu 18.04. I see that in Ubuntu 18.04, systemd is used. so If I want to launch daemon like /etc/init.d/myservice start, I should create ...
0
votes
0answers
72 views

How to set MTU on bridge device with netplan & networkd?

I want to use netplan with the networkd backend to bring up an ethernet bridge, with a specific MTU. I can configure the MTU parameter in the netplan files, for both the bridge device and ethernet ...
2
votes
1answer
106 views

setting environment variables from command line inside unit files

I am trying to set a date inside the unit file for logging my unit file look like this: [Unit] Description=Jetty service After=multiuser.target [Service] Environment=MAIN_CLASS="com.candorgrc....
0
votes
0answers
55 views

How do I keep systemd from killing my tmux sessions?

I understand why systemd wants to kill my stuff when I log out. I want to make an exception for tmux. Here's what I've got so far: /etc/logind.conf [Login] KillUserProcesses=no .xinitrc ...
0
votes
1answer
50 views

Systemd: Starting of *.automount not supported

I'm running ubuntu 18.10 as lxc-container at proxmox 5.2 on my homeserver. I want to automatically mount a cifs share which i added to /etc/fstab file: //fileserver.lan/Serien /srv/storage/serien ...
2
votes
1answer
24 views

Will enabling the debug shell affect the systemd shutdown sequence?

I'm troubleshooting an issue where CentOS stops at "Reached target Shutdown" when I issue a reboot command. In other words the system does not reboot but remains as is after printing the mentioned ...
2
votes
0answers
257 views

Force restart of systemd-logind.service

I'm having trouble login using ssh on one server, the connection takes too long. I have had the same situation before on a different server and restarting systemd-logind.service worked. I tried to ...
6
votes
2answers
474 views

How to create composite systemd unit

There I certain services, that I typically start together: say zookeeper+kafka+elassandra. Is there a way how to write composite unit: all starts together, all dies together? Meaning if I start this, ...
0
votes
0answers
15 views

Can omxplayer receive keystroke if started by a service?

Debian w/ systemd. Here my autostart service: [Unit] Description=Autostart After=network.target [Service] ExecStart=/home/pi/bin/videoplayer.sh Restart=on-failure RestartSec=3 User=root Group=root [...
0
votes
1answer
57 views

Can't start Minecraft server in tmux with systemctl

I'm trying to automate my Minecraft server because having to manually wrangle tmux sessions gets really old after a while. Here's the systemd service file I wrote to help me with that: [Unit] ...
0
votes
1answer
39 views

Journald not logging custom fields on debian

I have the following script that I run on both an Arch Linux machine as well as a Debian stretch machine. On the Arch Linux machine I'm able to find the random value that was logged, whereas I can't ...
0
votes
1answer
29 views

How to keep track of when my OpenVPN connection is up (systemd)

I'm using the service openvpn-client@.service to connect to my VPN. When I start my computer it takes a little while for it to connect. I would like to see a desktop notification when the connection ...
0
votes
2answers
294 views

How can I start a systemd service when a given USB device (ethernet dongle) is plugged in?

I have an USB ethernet dongle I use for ethernet access, but I'd like to automatically start netctl-ifplugd@... when plugging it in. (Not to be confused with plugging in the ethernet cable - that's ...
0
votes
1answer
33 views

Systemd removes (host) routes on suspend

System removes custom routes after suspend and resume. When I add a route ip route add 1.2.3.4 via 5.6.7.8 It is removed after suspend and resume. This is annyoing, because it e.g. removes host ...
0
votes
0answers
90 views

Cannot run an app (e.g. rclone) successfully as a service

I'm trying to run the rclone-mount from the terminal it works fine, but it isn't working as a service (obviously I want to autostart it so I don't have to type mount everytime I restart). Terminal (...
2
votes
2answers
60 views

How to send an email alert when a linux service has stopped?

I have Systemd service that is supposed to be running all the time. I would like to get alerted by email in case the service has stopped? What is the best way to do it in linux?
1
vote
0answers
107 views

Run script before other units stop on shutdown

I need to run a script before a set of other services on my machine stop when shutting the machine down. (In my case, terminating an EC2 instance.) I have tried variations on the answer in this ...
0
votes
0answers
73 views

Exclude postfix log from syslog / journald

Is it possible to configure journalctl to exclude certain sources, like postfix, from the system log? Or can I exclude postfix messages from the system log by specifying another syslog facility (...
2
votes
1answer
308 views

Enable Systemd User-Service globally

Simple task. I have a user service that is installed globally on the system (i.e. in a path like /usr/lib/systemd/user). I now want to enable this service for all users on the system (i.e. make it ...
1
vote
1answer
147 views

systemd: disable useless tmpfs

Context: embedded system, read-only MMC with tmpfs overlay. Everything gets written to RAM & disappears on reboot. systemd insists on creating numerous tmpfs mounts (at least /run /run/lock /run/...
0
votes
0answers
82 views

Systemctl with polkit rule

I am trying to set my service without root password with the following polkit located in "/etc/polkit-1/rules.d" : polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop....
1
vote
1answer
252 views

letsencrypt/certbot systemd timer/service not working on Ubuntu 18.04

I installed certbot for nginx and the autorenew script set itself up automatically, but this is the email I receive, whenever it runs: /home/foobar/certbot-renew.sh: 1: /home/foobar/certbot-renew.sh: ...
0
votes
1answer
121 views

Kinit with systemd in user mode

I have created a keytab file under the user home directory $HOME/client.keytab. The authentication cache file is in it's default location /tmp/krb5cc_%U (where %U is the UID). Now, I have this simple ...
0
votes
1answer
108 views

systemctl set-property user-1009.slice CPUQuota=50% Failed to set unit properties on user-1009.slice: Unit user-1009.slice is not loaded

I'm trying to set per-user limits on processes, most of them are run with sudo --user. Why do user-1001 and user-1008 on my system have the slice files, but I can't get it on 1009? # systemctl set-...
3
votes
2answers
716 views

Set Default Route on Debian Stretch with multiple interfaces configured by dhcp

On a Debian Stretch system with multiple interfaces, I need to define the default route via a specific interface ens3. This interface receives its ip address 10.33.34.2 through dhcp. I adjusted the ...
1
vote
0answers
28 views

systemd per-user unit search path doesn't include .config/systemd/user?

Systemd docs state that per-user units can be added to multiple locations: see Table 2 on the man page: https://www.freedesktop.org/software/systemd/man/systemd.unit.html This includes, for example, ...
1
vote
1answer
551 views

How to safely set, change, remove values of EFI variables

After spending hours debugging a problem where systemd-boot started skipping its boot menu and in general ignoring its configuration file /loader/loader.conf (on the EFI partition), I've discovered ...
0
votes
0answers
49 views

Enter Auth Password: (PID 24160) Bug

I messed around in Kali linux for a while and now i've stumbled upon this little problem. Everytime i try to do something console related (switching from wifi monitor mode to managed or using ...
0
votes
0answers
91 views

Linux Mint showing systemd instead of boot screen

I installed Linux Mint 18.3 MATE on my notebook 2 days ago. Everything is flawless, except for one issue: the systemd status shows up: instead of the traditional boot screen. Just for reference, I ...
0
votes
0answers
113 views

SLES 12 Service start and stop order doesnt work

my system runs on suse enterprise 12 sp2. I have two services sapinit and sapcontrol. At startup the service sapinit has to be started before the sapcontrol service can start and at shutdown or stop ...
0
votes
0answers
23 views

Create another instance of a service that won't be closed with systemctl stop

I want to create another instance of sshd on another port which won't be closed with systemctl stop, but I don't know how to go about doing it. I don't know much about Linux, so I have only tried ...
0
votes
0answers
400 views

systemctl enable not working

Why does systemctl give no error message when all the following attempts to enable or reenable netctl-auto@wlp3s0.service manifestly fail ~ $ systemctl list-unit-files | grep enabled autovt@....
0
votes
0answers
180 views

Network unreachable after systemd-networkd restart (w/ bond interface)

I'm having issues with systemd-networkd on a newly set-up server which has 2 NICs w/ 4 ports each installed. I haven't touched any networkd configuration (aside from debug-level logging today), and ...
0
votes
0answers
40 views

Managing Several Graphical Applications without Desktop Manager

I currently have a Ubuntu 16.04.4 Server install and I'm using it to launch three graphical applications. Currently the setup is to autologin in for tty1-3 and then depending on which TTY it is, to ...
1
vote
1answer
55 views

Stop a systemd service and clear all persistent data

I have a systemd service that is making use of DynamicUser and StateDirectory in the unit file, so the service can be restarted freely without losing data. However sometimes I want to completely clean ...