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
3answers
65 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 ...
0
votes
1answer
35 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 ...
0
votes
1answer
26 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
16 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
46 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 ...
0
votes
0answers
59 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
47 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
24 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
30 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
0answers
256 views

Automatic restart of isc-dhcp-server

I'm a Debian and Raspbian newbie, and have a question about automatically restarting the ISC DHCP server. I have a Pi running Raspbian and the ISC DHCP server at a remote site with flaky power. ...
0
votes
1answer
45 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
49 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
25 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
15 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. ...
0
votes
0answers
44 views

systemctl is-enabled ghost Failed to get unit file state for ghost.service: Access denied CentOS 8

I'm trying to run a service I created but something is wrong and I don't get why. The service is located in /usr/lib/systemd/system and looks like this: [Unit] Description=Ghost systemd service for ...
3
votes
1answer
895 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
23 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
158 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
117 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
0answers
69 views

systemctl unable to start a service due to lack of permission to write the log file

I'm trying to start a service using systemctl on a Fedora 31 machine, but it fails because of a lack of permission in writing the log file: $ sudo systemctl start wildfly.service Job for wildfly....
0
votes
1answer
72 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 ...
0
votes
0answers
100 views

how changing openvpn default port on centos7

I am trying to change Openvpn default port from 1194 to 8080 I change port 1194 to port 8080 on server.conf at server and change the client config file like that remote 15.15.15.15 8080 then I ...
0
votes
1answer
49 views

systemctl service can't restart on reboot

I have created a service for systemctl which works perfectly but whenever I reboot the server it can't auto-restart itself. The code for the service is: [Unit] Description=Service Description [...
0
votes
0answers
38 views

Ubuntu service is showing running even after the process is killed

I have created a service like below:- Description=Java Service [Service] User=nobody # The configuration file application.properties should be here: WorkingDirectory=/home/ubuntu/pear ExecStart=/usr/...
0
votes
0answers
42 views

systemctl order of service dependencies

I have a service A that requires a service B. When service A is asked to start this should first start service B then A. When service A is asked to stop this should first stop service A, then B. In ...
0
votes
0answers
19 views

Process php unable to delete tmp file

We recently encounter some issues with httpd and nginx during a simple file deletion process. Indeed after setting PrivateTmp=false to our service file, the process still not able to delete a file in ...
1
vote
1answer
743 views

How does systemd ask units to reload configuration?

I was reading the manpage for systemctl reload and found this sentence about reload. reload PATTERN... Asks all units listed on the command line to reload their configuration. http://man7....
1
vote
0answers
190 views

How does SystemMaxUse on journalctl work?

I'm using journalctl for system logging. I want to have a log file to check what is happening with the process I'm running at anytime. So I'm configuring the journald.conf file like this: [Journal] ...
1
vote
1answer
2k views

systemctl complains about no installation config, but it exists

While following this tutorial on installing tomcat on CentOS I came across a problem executing the line sudo systemctl enable tomcat - it complains with the following error message: The unit files ...
3
votes
2answers
485 views

systemctl after dependency not listed (and probably not working)

I want to migrate gammu-smsd service to mariadb, so I have edited service systemctl edit --full gammu-smsd.service - I have added mariadb.service on After line. [Unit] Description=SMS daemon for ...
0
votes
0answers
36 views

Ubuntu Service not starting

I have a chatbot application that should run as a service with systemctl. Whenever I try to start the chatbot service I’m getting error and the service fails. If I start the chatbot directly from the ...
0
votes
1answer
1k views

How to fix error in catalina.out “libjli.so: cannot open shared object file: No such file or directory”

I was getting this error when running systemctl restart tomcat in my $CATALINA_HOME/logs/catalina.out log file: https://pastebin.com/Cpfs9xCk So I followed this post online: https://confluence....
1
vote
0answers
282 views

Maldet having problems with systemctl

Trying to start maldet daemon. Following shows up: "Job for maldet.service failed because the service did not take the steps required by its unit configuration." I have configured the 'maldetect/...
0
votes
1answer
7k views

How do I fix my systemctl status tomcat?

How can I get systemctl status tomcat to return 'success' instead of 'failed'? This is my etc/systemd/system/tomcat.service file: [Unit] Description=Apache Tomcat Web Application Container After=...
5
votes
1answer
334 views

sytemctl status log output

When I run systemctl status with multiple services at once like sudo systemctl status myservice1 myservice2 myservice3 I see the output, but in the end I see lines 1-48/48 (END) or if the output is ...
0
votes
0answers
803 views

systemd service in pacemaker for high availability

I came to know about the pacemaker for high availability. I have one simple service running on linux VM. I have started that using systemctl start <service name> command. I want to make this ...
0
votes
1answer
110 views

shibd daemon 'timeout' on systemctl start

I have a server that uses the shibboleth2 shibd daemon to allow remote authentication to a database. The daemon reads a very large federation metadata file on starting/reloading (circa 34MB). This ...
1
vote
0answers
943 views

Clickhouse: Failed to get D-Bus connection: Operation not permitted - CentOS 7, no docker image

I am trying to set up a Clickhouse server on my WSL which is based on CentOS. After following instructions in this page, and installing the DB successfully, when I want to enable the service I get ...
1
vote
1answer
387 views

autossh working fine from terminal, bot causing permission denied from systemctl

I'm trying to integrate autossh on a raspberry pi. if I launch the command by itself autossh -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -N -R 22002:localhost:22 user@myserver everything ...
0
votes
1answer
457 views

Change redis log file's path

I just installed redis cluster overs 3 centos 7 VM using yum. When trying to change the log file path and dir , redis did not start using systemctl and output is Jun 18 16:53:11 v-mht-db01 redis-...
0
votes
1answer
50 views

systemctl force order with before

I want to create a systemctl service that mounts partitions required by lighttpd. In the my-service.service file, I wrote the following: [Unit] Before=lighttpd [Service] ExecStart=/home/user/...
0
votes
2answers
16k views

Centos7 systemctl start unit not found

I look everywhere and just for the life of me figure out why systemctl would not start my unit. I am trying to start GCP's cloud-sql-proxy as a systemd service. This is what my cloud-sql-proxy....
3
votes
1answer
701 views

How to debug linux startup hang

My ubuntu system hangs on the startup. It hangs on [OK] items like usual on boot. Interestingly, I am able to ssh onto this machine, but the boot never finishes and login screen doesn't appear. What ...
0
votes
1answer
1k views

Fail2Ban Not starting when using sudo systemctl status fail2ban.service

When i try and restart fail2ban using sudo service fail2ban restart it displays the following error from systemctl status fail2ban.service Apr 02 20:12:30 centos systemd[1]: fail2ban.service: control ...
2
votes
1answer
2k views

Nginx fails to start after boot, but works fine with a manual command

I've recently got an Ubuntu 18 server and I'm a little confused to say the least. First: If I run sudo service nginx start or sudo systemctl start nginx, everything appears to work. My site is ...
0
votes
0answers
25 views

Systemctl restart service triggering another command

I created systemd service, which runs a script that auto-generates some configuration files if these don't exist, and loads the services depending on them, or loads the services with the existing ones....
2
votes
3answers
11k views

systemctl shows inactive / dead, but service is running

I would like to manage a TeamSpeak 3 server with systemd (systemctl). When I start / stop / restart the TeamSpeak 3 server using systemctl command, systemctl is returning the correct status: $ ...
0
votes
2answers
225 views

Fail2Ban-client works while its service fails

On CentOS7 I have the fail2ban-client working flawlessly, as it bans ips on failed logins as configured, but when I look at its systemctl status it shows as if it wouldn't be active or in failed state ...
0
votes
0answers
838 views

Preview or debug (dry-run or trace) systemctl actions (start, stop, restart, etc.)

Without having to manually trace dependencies, e.g. with systemctl show or systemctl cat, and manually inspect the state of the system with systemctl status and systemctl list-units, is there a way to ...
3
votes
2answers
10k views

systemctl shows service file not-found, even though .service file is present

I am running into a weird issue. I have a service file to start a custom application. systemctl command shows LOAD as not-found resource-service-prod-prod.service not-found active running ...