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
2
votes
2 answers

Automatic MySQL shutdown is RHEL7

When I execute systemctl start mysql it starts MySQL but I don't get command prompt back, it just stays like that. Database starts normally. After couple of minutes database automatically shutdowns and systemctl reports failure. I have also tried…
Jai
  • 141
  • 1
  • 3
  • 14
2
votes
1 answer

Starting nginx with systemctl fails, but running the command manually doesn't

On Arch Linux, for some reason, when I try to start nginx with the command "systemctl start nginx", it fails, with this being the output of "systemctl status nginx": Loaded: loaded (/etc/systemd/system/nginx.service; enabled) Active: failed (Result:…
Ivan
  • 61
  • 1
  • 2
  • 5
2
votes
2 answers

systemd file not pickuping environment values

Systemd file for filebeat doesn't pickup env variables and throw as below ExecStart=/usr/share/filebeat/bin/filebeat -environment systemd $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS (code=exited, status=2) Below is my systemd for filebeat…
2
votes
1 answer

How to give partial user access to systemctl without sudo/su/root

I'm a bit new to this, so I'm not sure where to look. I have access to a server that as a command that executes a limited version of systemctl, and I want to expand it. The command acts as follows: It allows specific users without sudo rights to…
2
votes
1 answer

Cannot kill redis server. It restarts every time I kill it

I cannot kill redis-server no matter how many times I've tried. ps -ef | grep redis-server gives root 10592 1 0 01:10 ? 00:00:00 /snap/redis/658/usr/bin/redis-server *:6379 root 10846 8813 0 01:12 pts/1 00:00:00 grep…
2
votes
0 answers

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 01 00:51:43 su[6784]: pam_unix(su:session):…
Kaper365
  • 121
  • 2
2
votes
3 answers

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 fine. Under Ubuntu 20.04 these services no longer…
ovidiu
  • 121
  • 1
  • 4
1
vote
0 answers

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/monitor_paths' file to include root and user folder…
n - s - m
  • 21
  • 2
1
vote
1 answer

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 works fine, but launching the same command from…
Dany Y
  • 115
  • 6
1
vote
1 answer

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 process exited, code=exited status=255 Apr 02…
Leon W
  • 115
  • 1
  • 1
  • 4
1
vote
2 answers

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 if I tried to start fail2ban by systemctl. $…
obeliksz
  • 183
  • 2
  • 12
1
vote
1 answer

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 preview what a systemctl stop|start|restart…
Amir
  • 837
  • 8
  • 17
1
vote
0 answers

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. However it seems like it failed to start due to…
Max You
  • 21
  • 2
1
vote
1 answer

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,then I read this post and tried systemctl…
kittygirl
  • 945
  • 5
  • 13
  • 33
1
vote
1 answer

Having trouble running supervisord using systemctl (systemd)

I am unable to get supervisor to successfully run via systemctl. I am running Centos 7.5 I install supervisor with sudo pip install supervisor $ supervisor -v: 3.3.4 $ which supervisord: /usr/bin/supervisord I put my config file in…
Brian Leach
  • 327
  • 3
  • 5
  • 16