Questions tagged [systemctl]

Questions about systemctl - the main tool to interact with systemd and the service manager.

Filter by
Sorted by
Tagged with
0 votes
1 answer
10 views

Automatically restart a systemd service when a file is modified on disk

I have a service, basically a Nomad Client. A minimal version of it looks like this: [Unit] Description=Nomad Client Documentation=https://nomadproject.io/docs/ After=network-online.target [Service] ...
user avatar
0 votes
0 answers
29 views

Tomcat catalina.sh starts correctly but starting tomcat.service gives Permission denied

Background On RHEL 8 I have Apache Tomcat v8.5.78 installed under /opt/tomcat/. User & group of the directory is set to tomcat:tomcat, so is the directory's content. I can start Tomcat with $ ...
user avatar
  • 335
0 votes
0 answers
3 views

Ubuntu go on emergency mode and not booting at all going to root

I was trying to incorporating hibernate in ubuntu when the lid closed. I use the command $sudo gedit /etc/systemd/logind.conf changed the line after removing # #HandleLidSwitch=suspend to ...
user avatar
1 vote
1 answer
22 views

systemd: my service stopped working with code=killed

My service has suddenly stopped working, systemctl status reports: Main PID: 5459 (code=killed, signal=TERM) Also, I checked through journald for my service (journalctl -u myservice.service) and the ...
user avatar
  • 1,451
0 votes
1 answer
90 views

Debian 11 bluetooth sap driver initialization failed

I tried connecting my speaking to my laptop through bluetooth and as I was connecting to it the laptop gave the message "The setup of ACTION II has failed." I did some searching around, ...
user avatar
1 vote
1 answer
82 views

LINUX + find the root cause for exception - failed to create bus connection: Resource temporarily unavailable

here is a strange exception for timedatectl command , on our RHEL server version 7.6 timedatectl set-timezone UTC Failed to create bus connection: Resource temporarily unavailable based on that ...
user avatar
  • 11.1k
0 votes
0 answers
37 views

How to reload (kill -HUP) rsyslog.service after a mount point comes up with systemd?

I've set up rsyslog to copy certain logs on a separate volume. I want it to be up as early as possible for obvious reasons, but also I want it to start writing to the volume as soon as it becomes ...
user avatar
  • 1,561
1 vote
1 answer
59 views

How can I get the full output from the command systemctl status? [duplicate]

When I run the command systemctl status, I got this output: [root@192 ~]# systemctl status sshd.service ● sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; ...
user avatar
2 votes
0 answers
39 views

Mount NAS share works by hand but not from boot even after networking

The problem is on a Debian machine, I use a Ubuntu one, and the same share is loaded in a Raspberry. I put the entry for the mount in /etc/fstab but it works only with sudo mount -a and not on the ...
user avatar
  • 21
2 votes
0 answers
81 views

Debian 11: Fixing Bluetooth Headset Input Device with A2DP Profile - Setting /etc/bluetooth/main.conf MultiProfile = multiple breaks bluetooth service

I'm trying to fix an issue where my bluetooth headset can't act as a microphone while using the A2DP profile. Everything I've been looking up has told me that you need to enable multiple profiles and ...
user avatar
  • 21
1 vote
0 answers
55 views

How to run VNC as a System Service on 64-bit Arm?

I'm following this guide to setup VNC server in my Ubuntu arm64 machine (specifically, armbian 64-bit). There's one problem I found with it so far. When I start the VNC server using vncserver :1 -...
user avatar
1 vote
0 answers
66 views

Qemu Instraction Suspend and Resume

When dealing with the synchronization between QEMU and the outside SystemC model, in order to reduce the synchronization and recovery overhead, it is necessary to pause and recover at the instruction ...
user avatar
0 votes
1 answer
505 views

Systemctl service failed Exit-code

My systemctl Code dont work ● <appname>.service Loaded: loaded (/etc/systemd/system/<appname>.service; disabled; vendor prese Active: failed (Result: exit-code) since Mon 2022-04-04 ...
user avatar
0 votes
0 answers
223 views

rootless docker systemctl daemon errors

I am trying to run docker on rootless user, but I can't seem to start daemon in any way using systemctl. I use Debian 11. To log into the user with root privileges I use key pair and any login to ...
user avatar
0 votes
1 answer
72 views

SystemD JournalD cannot disable child process output

I am running SystemD version 249.7+ on a custom embedded Linux device with Kernel 5.10.50. I am using Podman 4.0.2 with Docker-Compose to run a few containers. The problem I have is that the 'conmon' ...
user avatar
  • 153
0 votes
0 answers
26 views

User defined service in systemd (not root) brings some problems to boot

I was trying to create a service (a naive one, a introduction to a OS services, in the case, using systemd; always as a not privileged user). My failed script is bellow: [Unit] Description = ...
user avatar
1 vote
1 answer
168 views

journalctl --user -u myservice "No journal files were found", for a specific user

Problem: systemd user units journalctl output display "No journal files were found." This only happens for the one sss user I am testing with, all local users seem to work fine. EDIT: sss ...
user avatar
  • 294
1 vote
1 answer
101 views

systemctl / journal distinguish if service was restarted, not stopped and started

Is there a way to check if a service was restarted? When performing a systemctl restart myunit.service or systemctl --user restart myunit.service, the logs only show that my unit was stopped and then ...
user avatar
  • 294
1 vote
1 answer
113 views

Is very tedious to do System maintenance in Arch linux compared to Fedora, Debian/Ubuntu, Open Suse or gentoo? [closed]

I recently Installed Arch Linux (Arch-base/Arco/Endeavour/Manjaro). However I noticed that many services were no preinstalled in most Distro. For e.g. the bluetooth was not enabled by default. ditto ...
user avatar
  • 17
0 votes
0 answers
34 views

creating systemd from a script [duplicate]

I have a script that starts|stops a daemon, which listens on a port commands to start|stop daemon are simple /usr/local/custom-process/scripts.d/daemon.sh start /usr/local/custom-process/scripts.d/...
user avatar
  • 1,703
1 vote
0 answers
178 views

systemd-analyze does not detect changes made by systemctl edit

I am hardening my existing systemd services for Ubuntu 20.04 as recommended by a Lynis audit using systemd-analyze. I would like to use systemctl edit to make the changes, but systemd-analyze does ...
user avatar
0 votes
0 answers
86 views

Allow a Python program run without root privileges to restart Elasticsearch

There are a few suggestions out there with clues about how this might be achieved. It seems to me that the restart command of Elasticsearch shouldn't need root privileges, at least in my use case. ...
user avatar
  • 1,042
1 vote
0 answers
63 views

if a script is triggerd by a udev-rule, why does systemctl commands inside need to be invoked with sudo?

First: The default User the system is working with, is root. this is needed by other processes and functionality currently not better implemented. OS: Fedora 35 I have a udev rule which fires a script ...
user avatar
  • 111
0 votes
0 answers
49 views

Systemctl start not working but service start is working

I am in front of a strange thing on my Debian 10 system. I have custom services but when I try to start it with systemctl start XXXX, the console will never exit and the service is not started. When i ...
user avatar
0 votes
0 answers
483 views

fail2ban : Active: failed (Result: exit-code)

fail2ban.service - Fail2Ban Service Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2022-01-02 16:19:50 +...
user avatar
  • 1
0 votes
0 answers
27 views

Find out services allocating bus

When starting a service via systemctl, it fails and exits with Two services allocated for the same bus name XXX. How do I figure out which second service is using this bus?
user avatar
  • 101
0 votes
1 answer
108 views

sshd inactive (dead) even when connected via ssh

I'm running an VPS with Debian 11 on it. I was noticing, that systemctl status ssh says the ssh deamon is incative (dead). I have researched for quite a while and found out, that ssh uses something ...
user avatar
  • 62
1 vote
1 answer
219 views

Systemd log to file prepend timestamp

I have a systemd service that logs to files: [Unit] Description=... [Service] ExecStart=/path/to/my_service StandardOutput=append:/var/log/my_service/log.log StandardError=append:/var/log/my_service/...
user avatar
0 votes
0 answers
115 views

Cronjob not working on MX Linux-21

I have set up a cronjob for automatic updates. However, I realized that my cronjob was not functioning. So, this is my cronjob list. # Edit this file to introduce tasks to be run by cron. # # Each ...
user avatar
0 votes
1 answer
46 views

Unable stop service using systemd the process created by using command

I managed to start the service in 2 different ways Using normal command root@ip-172-31-35-92:/#/usr/bin/mongod --config /etc/mongod_27018.conf & Using systemd service. service mongod_27018 ...
user avatar
0 votes
1 answer
222 views

Systemctl service not killed after timeout on RuntimeMaxSec

My script runs every minute (with systemctl timer) but it will occasionally hang for ever, meaning that unless I manually stop it, it won't run again. So I implemented a timeout with RuntimeMaxSec but ...
user avatar
  • 863
0 votes
0 answers
869 views

systemd service status is in activating state all the time

I am running into a problem with systemd service, status of the script is always in "Activating state" not in "active". I am not sure what is the problem. Please help me on this. I ...
user avatar
  • 1
0 votes
0 answers
57 views

How can systemctl status show wrong Active value?

I'm using centos 8 OS. I have a service that starts tomcat on boot. And there was reported a bug that after update, that triggers reboot, tomcat haven't started (the system was rebooted). The result ...
user avatar
  • 101
0 votes
0 answers
49 views

Create new systemd service inside a service and inject the dependency

I want to create a new systemd service inside an existing service and update the dependency chan. Originally there are service A and service B. A is a one-time service for some initial setup, B is the ...
user avatar
0 votes
0 answers
56 views

Shell script running but systemctl isn't

So I recently started learning shell script and I made a shell script that would connect to the fastest protonvpn server and it would also launch the ProtonVPN gui app. The script works but when I ...
user avatar
  • 56
1 vote
0 answers
430 views

How to run a systemctl command without sudo?

Background: My developers are installing an informatica product in a RHEL8.3 server. The services are running using a user called infa_admin, and this user is already in the wheel group. This user is ...
user avatar
2 votes
1 answer
123 views

Is my firewall configured OK?

$ systemctl status ufw ● ufw.service - Uncomplicated firewall Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor preset: enabled) Active: active (exited) since Sun 2021-10-03 15:43:...
user avatar
0 votes
1 answer
41 views

Systemctl Servies dont see sudo file

My Problem- i need systemctl servies use sudo, but i dont know why, it doesnot see a sudo file What i've done wrong? Description=Just_Work_Pls After=network.target [Service] EnvironmentFile=/etc/...
user avatar
0 votes
2 answers
221 views

Fedora-33: This suddenly does not work: "root# exec systemctl suspend"

I don't know why, but until recently this command no longer works: root# exec systemctl suspend The system does try to suspend, with the screen even momentarily going off, but then it comes right ...
user avatar
  • 189
0 votes
0 answers
278 views

On ubuntu 20.4, after starting Cassandra with systemctl, no process listens at port 7000/9042/7199

I installed a 3-nodes Cassandra cluster on three machines (all running Ubuntu 20.4) . I could start either via systemctl start cassandra, or via cassandra -f command. But I noticed that if I start via ...
user avatar
3 votes
1 answer
6k views

Systemd Service Failing with exit-code status=203/EXEC

I am trying to create a service to run on boot. The service is a program I wrote in C++ and compiled and is located in my users home directory. The program opens some UDP sockets and sits in an ...
user avatar
0 votes
0 answers
39 views

How to allow hdfs-user (non-root) to run systemctl commands

I am trying to write a script to restart my services using systemctl restart. Service name is yarn-resourcemanager. Systemctl commands have to be run in root to my understanding, and my user (hdfs-...
user avatar
  • 1
1 vote
0 answers
61 views

Multiple services fail after kernel panic recover

The last week i crash debian trying to update python3, so i had the brillant idea of: apt-get remove python3 then python an a huge ist of packages was unistalled and system reboot in kenel panic. I ...
user avatar
0 votes
0 answers
100 views

System stalled after "systemctl isolate reboot.target"

I've got a Fedora 30 VM running on VirtualBox. Trying to understand systemctl and run levels better, I ran sudo systemctl isolate reboot.target As expected, the box restarted. However, it doesn't ...
user avatar
0 votes
1 answer
166 views

How to start the GUI in Centos 8?

I had a fresh instantiation on Centos 8. I installed Server and GUI. everything was working fine. But then, I needed to install the Nvidia drivers for my GPUs. To install the Nvidia drivers, I ...
user avatar
  • 101
0 votes
0 answers
493 views

is there a way to delay `systemctl reboot` using only `systemctl`?

I understand that there is a multitude of options to shutdown or reboot a linux system. Normally I would just use shutdown with the appropriate option. However, I find myself having no control of the ...
user avatar
0 votes
0 answers
207 views

How to prevent abandoned session when systemctl service start is executed via ssh

Jenkins job starts tomcat on a remote server by running systectl command via ssh. This creates an abandoned session and the pid points to tomcat/java process. Active: active (abandoned) since ... is ...
user avatar
0 votes
1 answer
266 views

Restart bluetooth at boot time

Whenever I boot up my computer (Pop!_OS 20.04), the bluetooth service is rfkill soft blocked. In order to make my bluetooth mouse to work I have to open a terminal and sudo systemctl restart bluetooth ...
user avatar
  • 21
0 votes
2 answers
303 views

Trying to start a .sh on boot

I try to start a start.sh file when the Server starts. Some info: It's a headless vServer I tried crontab but that didn't work either My current approach is systemctl command When I login the user is ...
user avatar
1 vote
1 answer
235 views

Problem with start GETH service

I have problem with starting a systemd service of geth. This is the service specification geth.service [Unit] Description=Geth [Service] Type=simple User=eth Restart=always RestartSec=12 ExecStart=/...
user avatar

1
2 3 4 5