Questions tagged [systemctl]

systemctl is the main command to control and introspect the systemd Linux init system.

Filter by
Sorted by
Tagged with
1 vote
0 answers
10 views

What is the best process to install a node based service/daemon/unit on Debian 11?

In this post: [Other serverfault post][1] [1]: https://serverfault.com/questions/1018676/how-to-configure-systemd-service-unit-to-start-node-app-with-npm-start-instead I found that it's possible to ...
  • 25
0 votes
0 answers
54 views

rsyslog: action suspended, next retry is

I'm trying to configure rsyslog to receive logs sent from other devices on port 3100 (my manager chose that port and I will get him to change it to 514 later), and save (append) those logs in local ...
0 votes
0 answers
28 views

Redirect systemd service logs to /dev/kmsg for all running services

Currently systemd service files will redirect the logs to journal buffer by default. But I need to get all the userspace services logs as part of /dev/kmsg buffer. I was able to add StandardOutput=...
  • 1
0 votes
0 answers
44 views

Failing oidentd.service on Ubuntu 20.04.04 LTS prevents installation of dreamfactory

I need to install Dreamfactory 4 on a Linux 20.0.4 LTS server, but the failing oidentd.service prevents the progress of the installation. I already tried to remove and install again oidentd, but ...
0 votes
0 answers
20 views

Dynamic NVM node path for service unit file

I recently migrated from using node installed on my Ubuntu server to using NVM to manage my node, but the issue is the application I use on this server uses a .service file that executes with the path ...
  • 187
0 votes
0 answers
77 views

thousands of systemctl unit named "/run/docker/runtime-runc/moby/....../runc....." in system

We are running k8s on SUSE. In some node, I found thousands of system units like this: sudo systemctl list-units --all | egrep "run-docker-runtime.*loaded.*inactive.*dead" run-docker-...
  • 1
0 votes
0 answers
51 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 ...
  • 209
0 votes
0 answers
420 views

How to I setup default php-fpm service if I have two versions of php

I am having two versions of PHP on an ubuntu server that is 8.1 and 7.4 I installed both PHP-fpm extensions and I have this in /var/run/php php7.4-fpm.pid php7.4-fpm.sock php8.1-fpm.pid php8.1-fpm....
  • 101
0 votes
1 answer
53 views

Restart rspamd.service as non-root user

I have webpage with button, when user clicks on button, script restart.sh on server is executed. This script contains: #!/bin/bash systemctl restart rspamd.service After clicking on the button, ...
  • 1
0 votes
1 answer
154 views

How to avoid ExecStop status in systemctl status

systemctl status command shows the ExecStop Failure message. Even though my service is up and running. testDB.service - the testDB service Loaded: loaded (/usr/lib/systemd/system/testDB.service; ...
1 vote
1 answer
526 views

How to list systemd unit files with descriptions

The command systemctl list-units only displays instances of units, such that are currently loaded into the memory. The command systemctl list-unit-files on the other hand lists all unit ...
  • 25
0 votes
0 answers
21 views

Using graphical applications on both vnc :1 and main display :0

I start /usr/bin/Xvnc :1 a gnome window manager of centos on boot, via systemctl script, as I sometimes like to connect to my machine via a different box. When I first installed and started slack, it ...
0 votes
0 answers
144 views

Ansible - No such file error when activating systemctl Podman user socket

I am running an Ansible playbook on a fresh Oracle Linux 8 system. It includes a step where it asks systemctl to activate a user Podman socket like so: - name: Enable podman socket vars: userid:...
  • 835
0 votes
0 answers
35 views

RHEL 7 systemctl: Combine multiple services into one. start the service independently

I have followed the steps from RedHat to start the multiple services into one service. https://access.redhat.com/solutions/3097871 /etc/systemd/system/myapps.target [Unit] Description=App Service Unit ...
0 votes
1 answer
48 views

Possible attack on my vserver - outgoing tcp/ip connection

I have a suspicious situation on my vServer (Centos 7). An unknown bash script is consuming all the memory from the server. There is a noticeable connection to the "outside". Unfortunately ...
0 votes
1 answer
171 views

Starting a Systemctl Service - Setting up uWSGI

I'm trying to set up uWSGI on Ubuntu 20.04, I'm trying to create a systemctld unit file but I'm struggling to start the service. The commands: sudo systemctl start myproject sudo systemctl status ...
0 votes
1 answer
446 views

systemd ExecStartPost is executed too fast

We have a unit file which: uses ExecStartPre which generates a config file ExecStart uses the config file to start a service ExecStartPost which deletes the file created by ExecStartPre. (the file has ...
  • 53
1 vote
0 answers
552 views

systemd fails to restart even after calling reset-failed

We have a need for restarting a service frequently in certain special scenarios. So when it fails with start-limit, the suggested solution is to call "reset-failed". What we found is that, ...
1 vote
3 answers
452 views

How can I cause systemd to wait starting a unit until a certain condition is fullfilled

I'm still struggling to understand boot sequence dependency configuration in systemd unit files. I've read the manual (systemd.unit). I tried to add dependencies using the After= and Requires= lines ...
  • 629
0 votes
1 answer
702 views

After= option not working in systemd service file

I have two shell scripts name first.sh and second.sh. The contents of first.sh and second.sh are given below: >>first.sh #!/bin/bash while true do echo The current time ...
1 vote
1 answer
194 views

amazon-cloudwatch-agent shuts down on every application reload

I have a Tomcat app on Elastic Beanstalk, and I want to send logs to Cloudwatch Logs. To that end, I set up log4j to write to file, and in .ebextension, amazon-cloudwatch-agent is installed and run. ...
0 votes
0 answers
22 views

Update applications running with Systemctl once there is a newer version on remote repository

I'm currently running multiple smaller web applications on a small scale server, and I set them up to be started and restarted with a systemctl service, I specifically made these apps a systemctl ...
0 votes
2 answers
350 views

systemd service reports "unknown port"

On a CentOS 7 server,I'm creating a new systemd service from scratch for a new service, prometheus-slurm-exporter. (It's an application that exports data from the SLURM scheduler on an HPC cluster.) ...
  • 1
0 votes
1 answer
631 views

Cannot kill - nginx: master process nginx -g daemon off

I am setting up both Nginx and OpenRusty on my Ubuntu , one thing confuses me is , even after I quit OpenRusty and stop Nginx , I can still observe a nginx running , seems like this process cannot ...
  • 101
0 votes
0 answers
1k views

Display service output on console using systemctl

I have following service file - [Unit] Description=Open VPN Agent After=syslog.target After=network.target [Service] Type=forking TTYPath=/dev/pts/0 KillMode=process PIDFile=/opt/openVPN/pids/...
1 vote
0 answers
866 views

`bad-setting (Reason: Unit nftables.service has a bad unit file...` when add `/etc/systemd/system` conf to nftables

System is debian 10 with nftables. I plan to make nftalbes auto restart when failed,script as below: cat << EOF >> /etc/systemd/system/nftables.service.d/override.conf [Service] Restart=on-...
  • 865
1 vote
0 answers
127 views

Debian 10: sendmail service stops constantly

Whenever I start sendmail service, it reports May 01 00:51:43 systemd[1]: Starting LSB: powerful, efficient, and scalable Mail Transport Agent... May 01 00:51:43 su[6784]: (to smmsp) root on none May ...
  • 111
0 votes
1 answer
1k views

How do you kill all instances of a systemd service?

I want to kill all instances of a systemd service. This works fine: sudo systemctl stop 'custom-service@*' but it is slow since it runs my custom ExecStop which does extra work to safely shut down the ...
  • 103
0 votes
1 answer
271 views

Cannot stop screen started with systemctl start [closed]

On ubuntu server 20.04 I created a service definition for a Minecraft server within a screen session like that [Unit] Description=Minecraft Server After=network.target [Service] User=minecraft Nice=...
  • 111
1 vote
1 answer
869 views

How to use SIGHUP for reloading services?

I've installed Hachicorp Vault and did setup the TLS configuration. My goal now is to have the vault.service to do an automatic reload if the TLS certificates were renewed. The official documentation ...
0 votes
1 answer
340 views

Allow a user to restart a service

I am trying to restart a service without being root. Here is the code snippet where the command being used template { source = "{{vault_template_dir}}/agent.crt.tpl" destination = &...
1 vote
0 answers
258 views

How to troubleshoot a systemd timer on Ubuntu 16.04 that won't re-schedule every minute as expected?

I have an existing systemctl target that was originally (by default installation) scheduled to run everyday, almost continuosly with just a pause of 30 seconds between the end and beginning of each ...
  • 41
0 votes
1 answer
775 views

simple systemd service and socket failing

I had a service I was trying to run this way but it was slightly a large python program. I took a step back and built a dead simple python program to see if I can get it to run. It fails when I try ...
  • 67
1 vote
0 answers
291 views

Mongo Authentication when mongod started as a service

System specs: OS: Debian 10 Mongo Shell: v4.4.4 Mongod: v4.4.4 I successfully created a user administrator for MongoDB with the privileges below (output from show users in Mongo Shell). { "...
2 votes
1 answer
9k views

systemd failing enable with "service is transient or generated". What's wrong with this configuration?

In General I've been scouring the web looking for actually helpful documentation about systemd and this error, but the majority of it has been troubleshooting niche cases or goes into such extreme ...
  • 21
0 votes
1 answer
28 views

Redhat 7.3 Sybase 16 (edge) issue with systemctl auto startup process

After installing Sybase 16 (Edge) and successfully upgrading a 15.7 instance to Edge, and then trying to add the sybase service with systemctl so that sybase starts up automatically when the Redhat 7 ...
0 votes
0 answers
2k views

Can't restart MySQL, Start request repeated too quickly

I can't restart my MySQL server with systemctl or any other ways. On journalectl it says mysql.service: Start request repeated too quickly. mysql.service: Failed with result 'exit-code' Here the ...
0 votes
2 answers
413 views

How can I debug firewalld on CentOS 7 stopping running unexpectedly?

I have a brand new CentOS 7 server and am just performing the initial setup. I have started firewalld with sudo systemctl enable firewalld sudo systemctl start firewalld both commands appeared to run ...
  • 131
1 vote
1 answer
802 views

systemctl and journalctl can't find charon-system.service

If I run with grep, service is present in output [root@maincore ~]# systemctl status --all | grep charon │ │ └─135060 grep --color=auto charon │ └─127087 /usr/sbin/charon-systemd ...
3 votes
1 answer
5k views

clamav-daemon start condition failed, /var/lib/clamav/daily.{c[vl]d,inc} was not met

After installing Modoboa(Open Source Mail Hosting), I Tried to start clamav-daemon, but i faced start condition failed. systemctl status clamav-daemon.service clamav-daemon.service - Clam ...
0 votes
0 answers
2k views

Docker systemctl Failed to get D-Bus connection bug

When I execute any systemctl command inside a CentOS 7 container I get the Failed to get D-Bus connection: Operation not permitted error message. The container is started with docker container run --...
  • 93
1 vote
1 answer
2k views

How to Set Up Time Synchronization with NTP on Ubuntu 20.04.1 LTS

After updating the base system with the latest available packages: apt-get update -y and root@localhost:~# timedatectl Local time: Wed 2021-01-06 08:03:11 UTC Universal time:...
1 vote
0 answers
3k views

Warning: The unit file, source configuration file or drop-ins of X changed on disk. Run 'systemctl daemon-reload' to reload units

I am running Debian 10.4 on kernel 4.19.66+. It seems that my unit files are changing on their own (It sounds crazy, I know), with no interaction from me, the only user of the system. I found this ...
  • 11
-1 votes
1 answer
684 views

Cannot get redis 5 to run with systemctl

Installed Redis 5 (have Redis 3 working on server) Modified various configurations in /etc/opt/rh/rh-redis5/redis.conf as necessary including setting supervised to "systemd" and setting ...
's user avatar
1 vote
1 answer
552 views

How to install gmod server as system service on Ubuntu?

I have a GMod server on Ubuntu 18.04, and it runs fine when I run it via ./run_gmod.sh (as the "steam" user, who owns the folder/files), whose contents are #!/bin/sh /datadrive/srcds/gmod/...
  • 205
0 votes
1 answer
293 views

Cron jobs stopped working

I have an issue almost identical to what is here: Cron jobs not working anymore However I can't seem to find any memory-related problems as per the accepted answer, so I thought I should open a new ...
1 vote
0 answers
1k views

Systemd unit not found on start but exists on status

A service exists and succesfully found via status command >sudo systemd status my-service ● my-service.service - My service description Loaded: loaded (/usr/lib/systemd/system/my-service.service;...
  • 111
0 votes
2 answers
637 views

gammu 1.42, gammu-smsd service error, LD_LIBRARY_PATH not found

I'm trying install Gammu 1.42 to serve my SMS gateway on Centos 8. make, make test, make install works fine. LD_LIBRARY_PATH configured in /etc/profile as: ...... LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/...
  • 101
0 votes
1 answer
821 views

Enabling systemctl service does not load at boot

I have set up gunicorn to server two Django sites, as per this setup. This works well. If I run: # systemctl start gunicorn@my_website.service Then all is well and my website is being served as ...
2 votes
3 answers
3k views

systemctl --user cannot start docker containers on Ubuntu 20.04

I am in the process of migrating some services from Ubuntu 18.04 to 20.04. In 18.04 I run these services under a non-root user. All these services start a docker container, and they're working just ...
  • 121

1
2 3 4 5