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
0answers
13 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 ...
0
votes
1answer
37 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
28 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] ...
0
votes
1answer
19 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 ...
2
votes
1answer
45 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
15 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
115 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....
0
votes
0answers
22 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
139 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
260 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
47 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
40 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 ...
0
votes
0answers
144 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 ...
0
votes
1answer
31 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
47 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
24 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
2k 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....
2
votes
1answer
247 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
122 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 ...
0
votes
0answers
46 views

How to activate service aftering mounting in systemd

I want to mount aria2c service after mount mnt-usb.mount. The following config file work as expected but after mnt-usb.mount inactive and active again (because of unpluging and plug the device again) ...
0
votes
0answers
34 views

Nginx uWSGI server setup fro flask: Error starting service

I followed the digital ocean tutorial here detailing how to serve a flask app But running sudo systemctl status zen gave me an error log of zen.service - uWSGI instance to serve python-monolith-api ...
1
vote
1answer
288 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
36 views

Systemd service exiting after the child processes run successfully

Unit file: [Service] Type = simple #PIDFile = /var/run/learninglocker.pid ExecStart = /usr/bin/npm start ExecStop = /usr/bin/npm stop WorkingDirectory = /opt/learninglocker User = root Group = root ...
0
votes
0answers
20 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....
1
vote
2answers
4k 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
67 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
382 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 ...
0
votes
2answers
3k 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 ...
0
votes
0answers
87 views

Systemctl start tomcat fails most of the time to start tomcat

If I run a specific tomcat folder it runs 100% of the time. If I run a second test folder (tomcat2) it will only run maybe 10% of the time. In other words it seems to succeed a small portion of the ...
1
vote
0answers
648 views

Failed to get properties: No such interface ''

i try to start my new service : /etc/systemd/system/myservice.service [Unit] Description=My Desc... After=network.target [Service] User=webXX Group=clientXX ExecStart=/var/www/xxx/xxx/xxx/golang-...
1
vote
0answers
179 views

Failed to start open network operating system using command systemctl

i follow the admin guide to install onos and when i issue the following command: sudo systemctl status onos.service it output a error message that show failed to start open network operating system. ...
0
votes
1answer
707 views

“Failed to start Raise network interfaces” for bridge br0 even though br0 exists

I have setup two bridge devices on Debian 9.6 box and systemctl status networking.service claims that bridge br1 was not set up, even though after booting it's actually just fine: % systemctl status ...
2
votes
3answers
6k views

systemctl stops Tomcat service immediately after start

I asked first this question on StackOverflow, but it seems that this site is a better fit. I am setting up a web app environment to run Java apps. The environment is supposed to be: AWS EC2 Ubuntu ...
2
votes
1answer
303 views

`systemctl disable --now postgresql` doesn't stop the daemon

I'm running Debian Stretch and PostgreSQL 10 from apt.postgresql.org. When I do: postgresql disable --now postgresql the database server doesn't stop. It says: Synchronizing state of postgresql....
0
votes
1answer
342 views

Systemctl service dependency without changing service file [duplicate]

I want to make nginx service dependent on a service I wrote, say abc.service. By dependent, I mean: nginx service should stop when I stop abc nginx service should start when I start abc A typical ...
2
votes
1answer
323 views

“systemctl start service” when service already started

I, what happen's precisely when you run systemctl start apache2 (or other service) while service already started ? Can it cause trouble to start several hundred times a day apache2 service? (to ...
0
votes
1answer
305 views

Parsable output from systemctl (for example list all units)

I am not happy with the output of systemctl I have a script which parses the output of systemctl list-units -t service --full --all The beginning of the output look like this: UNIT ...
1
vote
1answer
27 views

How to allow root login server and disallow website users connection in centos 7 maintenance period?

My clound VPS server is centos 7.4,I run apache,mariadb in this server. Now,I want to migrate from mariadb to mysql. During maintenance, server need no user disturb. In centos 7, has no run level 1,...
2
votes
1answer
5k views

Cannot use `systemctl --user` due to “Failed to get D-bus connection: permission denied”

I'm trying to set up user-level services, using this answer to a similar question. I have create the required files and rebooted. I'm making progress because I now get "Failed to get D-bus connection:...
0
votes
1answer
8k views

Killing systemd service with and without systemctl

What is the difference between killing an running daemon systemd service like this : kill -SIGKILL 3645 and systemctl -s kill -SIGKILL 3645 where 3645 is the pid of the systemd service.Also are ...
-1
votes
1answer
2k views

sudo user is not allowed to execute systemctl

I'm trying to allow a user to use sudo to manage a custom systemctl service, this however seems to fail and I can't figure out why. [root@testvm sudoers.d]# ll total 16 -r--r-----. 1 root root 334 ...
0
votes
1answer
132 views

CentOS 7 - systemctl - chown - unexpected remote arg

I have a custom made service file and I'm unable to run it. Here is the ExecStart line: ExecStart=/bin/rsync --ignore-existing -rtvu /var/foo/foo/ /var/foo2/foo2 && /bin/chown nginx:nginx -R /...
0
votes
1answer
721 views

Systemctl: Java not found! when using systemctl

I am using CentOs 7.5.1804 and have a problem with a service. When i start my service with systemctl it fails with the message which: no java in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) ...
0
votes
1answer
226 views

systemctl status dovecot.service, it floods console with all logs, how to stop [closed]

systemctl status dovecot.service, it floods console with all logs, how to stop it? on my cpanel server, it is running through tailwatchd, and it eats up too much cpu, whenever it runs. how to ...
0
votes
0answers
754 views

etcd service failed to start (put with unexpected smaller revision)

Introduction After a recent power outage, the etcd service on a RHEL7 server fails to start. Details Here's the output of journalctl which is relevant to this error: -- Subject: Unit etcd.service ...
0
votes
1answer
119 views

Chkconfig ignores service dependencies

So I have these 2 files: /etc/init.d - service1 - service2 service2 is like: #!/bin/sh # chkconfig: 2346 95 45 # description: desc # processname: service2 ### BEGIN INIT INFO # Provides: ...
0
votes
1answer
395 views

visudo cannot get around systemctl

I've given my user root permission to run systemcl via visudo. # visudo XXXXXX ALL=NOPASSWD: /bin/systemctl restart shiny-server.service After logging out and back in, I run the command: $ /bin/...
0
votes
1answer
168 views

OpenDKIM starts before MariaDB on Ubuntu 18.04

I installed OpenDKIM on Ubuntu Server 18.04, using it with Modoboa, so the config file contains DSN for KeyTable and SigningTable to connect to MariaDB. I noticed that the service always fails to ...
0
votes
0answers
146 views

managing a process with supervisord instead of sytemctl

I have a VPN service that I would like to manage through supervisord. When the VPN service installs itself, it makes an entry in /etc/systemd/system/pgateway.service. Contents below: [Unit] ...
0
votes
1answer
178 views

logstash won't run as a service

Ive installed logstash v6.3.2 via yum on CentOS7. When I start it via systemctl start logstash it appears to start properly but then exits almost immediately. There are no (apparent) errors shown. (...