Questions tagged [systemctl]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
19 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 ...
0
votes
0answers
29 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/...
0
votes
0answers
170 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-...
0
votes
0answers
42 views

avahi stops working in multi-user.target

I have another machine on my network running avahi-daemon with the default configuration and it's been working fine since the first boot. On a newer machine, avahi-daemon works only if i set systemctl ...
1
vote
0answers
49 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 ...
0
votes
1answer
146 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 ...
0
votes
1answer
63 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=...
1
vote
1answer
257 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
1answer
59 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
0answers
103 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 ...
0
votes
1answer
40 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 ...
0
votes
0answers
37 views

service stuck on failed after very fast restart calls

our IT guys encountered an error with one of our service following very fast restart requests service is stuck on failed until another restart call question is, how can recover from failed ...
1
vote
0answers
160 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). { "...
0
votes
0answers
34 views

systemd disables timers after reboot

I have a service and a timer that activates every night: /etc/systemd/system/daily-backup.service: [Unit] Description=Running daily backup [Service] Type=oneshot ExecStart=/hosting/backup/daily-...
0
votes
1answer
3k 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 ...
0
votes
1answer
19 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
0answers
584 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
2answers
131 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 ...
0
votes
0answers
298 views

How can I figure out why my sidekiq service is failing?

I have an ansible playbook which installs sidekiq. Specifically, I'm using thermistor.sidekiq from ansible-galaxy. The role seems to install correctly: TASK [thermistor.sidekiq : Install the sidekiq....
1
vote
1answer
281 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 ...
2
votes
1answer
2k 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
0answers
691 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 --...
1
vote
1answer
1k 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:...
0
votes
0answers
2k 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 ...
-1
votes
1answer
399 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 ...
1
vote
1answer
235 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/...
0
votes
1answer
125 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 ...
0
votes
0answers
78 views

How to test a new network configuration before restart systemd-networkd

I have added an ip address in the [Address] section in a .networkfile inside the directory /etc/systemd/network I must have done something wrong when adding the address since I managed to lock me out ...
1
vote
0answers
130 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;...
0
votes
2answers
398 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/...
0
votes
1answer
309 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 ...
0
votes
0answers
150 views

Error restarting SAMBA, requires force

Under CentOS 7, I am running a SAMBA server. Recently, likely after some updates, has become a bit less stable. The log shows periodically: change_to_user_internal: chdir_current_service() failed! ...
1
vote
3answers
2k 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 ...
1
vote
1answer
201 views

listing Systemd target unit's dependencies in a machine readable format

I have a complex systemd target unit with a number of dependency units. I would like to list and parse the status of these without falling back to a loop. the 'list-dependencies' sub-command only ...
1
vote
1answer
834 views

Cannot start services on CentOS 7

Suddenly, I cannot start services on my VPS(CentOS 7). For example, service httpd start Redirecting to /bin/systemctl start httpd.service Authorization not available. Check if polkit service is ...
0
votes
0answers
70 views

Prevent to use systemctl poweroff and systemctl reboot for non-root users in CentOS

I have CentOS 7 server and there is one non-root level user named user1. That user1 only has the permissions to start, stop, enable and disable for Zabbix Services (allow these service in sudoers file)...
0
votes
1answer
52 views

On Fexora Server 32, new cron jobs aren't showing up with systemctl list-timers --all

I've just brought a new server online and configured it the way the old one was regarding cron, but the jobs aren't running. So, I went through the configuration carefully and checked that the current ...
1
vote
0answers
1k views

Postgresql: can't start service database system was shut down

I install Postgresql using sudo apt install postgresql postgresql-contrib then I run sudo systemctl restart postgresql then I run sudo systemctl status postgresql It says Active: active (exited) ...
0
votes
1answer
259 views

Fedora28 - firewalld stopped working as it unable to communicate with ABRT daemon

We are currently running a Fedora 28 server. Due to the server being restarting multiple times, FirewallD has stopped working. Based on the error messages presented when we run the command systemctl ...
0
votes
0answers
362 views

Spring Boot and stop by systemctl not working

My application uses Spring Boot 2.3.1.RELEASE, it is an executable jar that uses an Embedded Tomcat and is listening on port 10605. I deployed on CentOS Linux release 7.6.1810 (Core). I took the ...
0
votes
1answer
51 views

systemctl service + how to configure service for boot priority

we have rhel 7.2 machine server have the following service [root@server1 system]# more rc_build_infra.service [Unit] Description=infra Manager Server Requires=network.target remote-fs.target After=...
0
votes
1answer
290 views

systemctl enable seems to succeed, but unit not intalled as a want per [Install] WantedBy

Pretty new to systemd, so likely (and hopefully) missing something trivial. Thanks in advance. I'm trying to enable a service (bees btrfs dedup; unit file below), but the enable/[Install] doesn't ...
1
vote
0answers
57 views

View systemctl service process

I have a minecraft server running as a system service and wish to check up on it. I know I can do systemctl status minecraft.service but that doesn't let me see the java process's output and/or input ...
0
votes
0answers
130 views

Systemctl cannot run Script command on openvpn

It is weird that the /usr/lib/systemd/system/openvpn@.service is a simple task: [Unit] Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I After=network.target [Service] Type=...
0
votes
0answers
36 views

Cannot access VM after running "systemctl isolate rescue.target"

I have a VM running on VMWare. OS is RHEL 7. I ran the following command and the ssh session also terminated. systemctl isolate rescue.target Now I cannot access the server. Even ping doesn't work. ...
8
votes
1answer
5k views

mariadb.service start stuck at activating

I just installed the mariadb in my ubuntu 19.10 by sudo apt install mariadb-server mariadb-client after when I am trying to start the server by sudo systemctl start mariadb.service shell get freeze I ...
1
vote
0answers
25 views

pre launching systemd user processes

I've configs in place to start resque-first.target, then resque-metro.target and finally resque-prisma.target, but for some reason they all start at the same time systemctl --user cat resque-worker....
0
votes
1answer
588 views

systemctl enable sidekiq: Failed to issue method call: Access denied

I am trying to implement Sidekiq using Systemd on Ubuntu 16. I am logged in as deployer. I navigated to the /lib/systemd/system directory and wanted there to create a file: nano sidekiq.service. ...
1
vote
1answer
329 views

How does systemctl variable escaping work in a shell?

I want do a batch job with systemctl, something like: systemctl status v2ray-haproxy@{1..5} That's fine. But when i change 5 to a variable: n=5;systemctl status v2ray-haproxy@{1..$n} It's not ...
0
votes
1answer
78 views

Why is Docker services keep running without my consent

These docker services keep running without my consent, how to stop them: /usr/bin/docker-containerd-current /usr/bin/dockerd-current I don't want to uninstall Docker, just want to stop services to ...