Questions tagged [systemctl]

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

systemd is a system and service manager in Linux. More information about switches and arguments can be found here.

228 questions
5
votes
2 answers

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 LOAD ACTIVE SUB …
guettli
  • 3,591
  • 17
  • 72
  • 123
5
votes
1 answer

fail to enable mysqld service but after reboot the service is running on centos 7

After I installed, I run systemctl enable mysqld.service. Then, the output is: Failed to execute operation: Too many levels of symbolic links After this error, I reboot my service, and I check the status of mysqld.service. systemctl status…
Tony
  • 51
  • 1
  • 1
  • 3
5
votes
1 answer

CentOS 7: Fresh Install Firewalld doesn't work at all (Fatal Error: No IPv4 and IPv6 firewall)

I have the following problem. I just did an DVD CenOS 7 installation. After I boot into the system I normally login as the root user. From there I'm trying to configure Firewall on my server. As I'm relatively new to all of this I just did some…
patvax
  • 151
  • 1
  • 4
5
votes
1 answer

where is systemctl command in redhat 6.6 64 bit OS?

I was trying to run status of network by following commands. sudo systemctl status network However the system says systemctl command not found.
DaeYoung
  • 185
  • 1
  • 1
  • 6
5
votes
1 answer

gunicorn 19.2 fails to start with 18.0 configuration

I've got a dev server running gunicorn/Django behind nginx. As part of a wider server environment update, I attempted to upgrade gunicorn from 18.0 to 19.2.1, but the service would no longer start. (The server is running Arch and therefore uses…
JK Laiho
  • 197
  • 11
5
votes
1 answer

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 AntiVirus userspace daemon Loaded: loaded…
Omid Estaji
  • 213
  • 1
  • 3
  • 11
4
votes
2 answers

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…
Tom HANAX
  • 163
  • 5
4
votes
0 answers

`systemctl show` outputs incorrect MemoryCurrent value

on one box, systemctl show get an incorrect value for unit memory usage: $ systemctl show crond | grep MemoryCurrent MemoryCurrent=18446744073709551615 18446744073709551615 == UINT64_MAX, this must be incorrect. but another box shows correct memory…
georgexsh
  • 143
  • 5
4
votes
1 answer

Show custom exit status in systemctl

I would like to show a custom message when someone runs systemctl status and the script has failed. Systemd seems to have a few built in. If I have a script that runs exit 200 systemctl status will out put (code=exited, status=200/CHDIR) How can set…
Matthew
  • 183
  • 5
4
votes
1 answer

Mongodb doesn't start using systemctl

When I try to start the mongo service(systemctl start mongodb) I get this error in journalctl: Mar 21 15:36:18 redhat7 systemd[1]: Started High-performance, schema-free document-oriented database. Mar 21 15:36:18 redhat7 systemd[1]: Starting…
Telen Stanley
  • 155
  • 1
  • 2
  • 7
4
votes
1 answer

Systemd service: Failed to issue method call: Unit service failed

I am trying to make a custom service in my VPS. However, it doesn't let me to run it. It says the following. I am not sure what is going on but when I run it on my Ubuntu laptop, it works properly. What could be the problem? sudo systemctl start…
kobbycoder
  • 151
  • 1
  • 9
4
votes
1 answer

Why does `systemctl start myservice` not fork this service?

I have written a systemd service. When I run systemctl start foo.service, the service starts and runs correctly, but systemctl does not return immediately to the shell. After a while it exits with Job for foo.service failed because a timeout was…
spraff
  • 549
  • 4
  • 8
  • 18
4
votes
1 answer

CentOS7 systemctl calling ExecStop on reboot after my procceses are already killed

I have a systemd script which is as follows: [Unit] Description=My sites Before=shutdown.target reboot.target halt.target [Service] Type=oneshot ExecStart=/bin/bash -c '/etc/xxx/mySites start' ExecStop=/bin/bash -c '/etc/xxx/mySites stop' …
3
votes
1 answer

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 should I do to debug the problem?
3
votes
4 answers

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: $ systemctl status ts3server.service ● ts3server.service -…
checker284
  • 131
  • 1
  • 1
  • 3
1 2
3
15 16