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
0
votes
1 answer

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-server[21278]: *** FATAL CONFIG FILE ERROR *** Jun…
AhmedDrira
  • 101
  • 1
0
votes
1 answer

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…
Jav
  • 293
  • 3
  • 13
0
votes
0 answers

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. I would like to provide some extra…
xCovelus
  • 200
  • 1
  • 1
  • 7
0
votes
1 answer

Systemctl service dependency without changing service file

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 way would be to modify…
constantine1
  • 103
  • 1
  • 3
0
votes
1 answer

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 /var/foo2/foo2/ && /bin/chmod -R 777…
Bert
  • 1,028
  • 1
  • 16
  • 33
0
votes
1 answer

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) Java not found! Following the error message i did a…
Mchoeti
  • 226
  • 3
  • 5
0
votes
1 answer

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

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 disable log output in service status?
Farhan
  • 4,269
  • 11
  • 49
  • 80
0
votes
1 answer

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: service2 # Required-Start: service1 #…
Stefano Lazzaro
  • 175
  • 1
  • 6
0
votes
1 answer

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/systemctl restart shiny-server.service And get: ====…
Chris
  • 95
  • 1
  • 5
0
votes
1 answer

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 start on reboot, but afterwards I can start it…
InToSSH
  • 45
  • 7
0
votes
0 answers

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] Description=Cradlepoint NetCloud Client that provides…
Brian Leach
  • 327
  • 3
  • 5
  • 16
0
votes
1 answer

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. (journalctl -f) [2018-07-26T10:32:58,645][INFO…
ethrbunny
  • 2,369
  • 4
  • 41
  • 75
0
votes
1 answer

OpenDKIM Exited status and mysql plaintext passwords

On my VPS Debian Jessie, email server Postfix + Dovecot with user and password on MySQL, I've installed OpenDKIM, that use MySQL for keys too. If for some reason the server reboot, I can find every time the OpenDKIM service in status "active…
0
votes
1 answer

Centos 7 HA firewall/router systemctl ospfd

I'm trying to create an HA firewall/router pair using keepalived (VRRP only), conntrackd, and OSFP under quagga, all installed as the standard Centos & packages. This is similar to the setup described in Solving an asymetric HA Firewall/router but…
0
votes
0 answers

How to get whole log info?

To get the upload service's log info. sudo journalctl -l -u upload -- Logs begin at Thu 2018-01-18 22:38:54 EST, end at Fri 2018-04-13 23:44:37 EDT. -- Apr 13 23:36:50 localhost systemd[1]: Started upload files into dropbox. Apr 13 23:36:50…
showkey
  • 115
  • 1
  • 4
  • 19