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
1
vote
2 answers

Running systemd units in user space in debian

I'm trying to setup a unit to run on Debian Stretch under a regular user. I connect to it over ssh. I first did this as root (username being the user in question): # loginctl enable-linger username And then when I run: # systemctl --user I…
1
vote
1 answer

systemctl unable to start red5 init.d script on ubuntu 16.04

I tried to build and install systemd script for red5-server on ubuntu 16.04 server. I found the sample init.d script at https://gist.github.com/akarambir/a40163f163ae8b131be8 and downloaded I named the script with red5.sh and added to…
Sencer H.
  • 562
  • 1
  • 8
  • 17
1
vote
0 answers

Failed to get D-Bus connection: connection refused

I'm having a hard issue on a server, and I get no clue of what is happening nor where to search to debug it. Here is my problem : When I run any command such as : systemctl start httpd.service or systemctl -a or (apparently) any systemctl linked…
Roshyo
  • 11
  • 3
1
vote
0 answers

How to run a docker image as a systemctl service?

I'm following the instructions here, using 'docker run'. I came up with the following. The container starts, and then stops. What am I missing? For that matter, systemctl status shows me the tail of a log; where is the rest of that…
bmargulies
  • 2,333
  • 3
  • 17
  • 20
1
vote
0 answers

systemd killing process on start after timeout period

I got a daemon in centos 7 that I'm trying to setup for execution on boot via systemd. The daemon is a binary (c source) that does a fork and change of id/group. The trouble I'm having is systemd seems to kill the daemon after a timeout period. I'm…
user44021
  • 11
  • 1
  • 4
1
vote
1 answer

How to pass arguments to systemd-nspawn via systemctl?

I am testing systemd-nspawn and launch a base system testcont (previously created with debootstrap) either via # systemd-nspawn -bD testcont --network-bridge=br1 or # systemctl start systemd-nspawn@testcont.service In the first case I can pass…
WoJ
  • 3,607
  • 9
  • 49
  • 79
1
vote
3 answers

IPTables won't start automatically after reboot - Red Hat 7

In Red Hat 7 I'm trying to force the IP tables service to start automatically after reboot. Currently, after every reboot I need to run the command: sudo systemctl start iptables I've tried setting sudo chkconfig iptables on but it isn't running. In…
user2694306
  • 123
  • 1
  • 1
  • 7
1
vote
2 answers

Unable to start OpenSSH service in CentOS 7.1

I am trying to install OpenSSh server on a fresh CentOS 7 machine , although the installation went fine but when I am trying to enable/Start, or to know the status of sshd.service using systemctl I am getting an error , "Failed to issue method call…
the_Strider
  • 157
  • 1
  • 1
  • 7
1
vote
0 answers

dovecot, postfix, systemctl start never completes, mystery dependency

I've installed Xubuntu 15.04 and right away I was forced to dive right into the gritty details of systemd, systemctl, systemd-analyze. Right out of the box, postfix hangs on apt-get on the configuring part. So does dovecot. What I've learned so far…
Mike
  • 111
  • 1
1
vote
1 answer

systemctl throwing errors on start/enable after package instal

In the effort to lock down a new Centos box I am building I am installing iptables. I would like to be able to put this in a script so I can do this to other boxes but I am getting some odd errors and the roll back requires a reboot? Installing…
Acyclic Tau
  • 111
  • 1
  • 1
  • 4
1
vote
1 answer

postgrey configuration on Fedora Core 21 is very different, and not documented

In upgrading from Fedora Core 16 to Fedora Core 21, one of the challenges has been getting postfix working with postgrey. I still don't have it working after many long hours focused on it. In the old strategy, the official directions direct you to…
Richard T
  • 1,206
  • 12
  • 29
1
vote
1 answer

Suddenly mysql/mariadb won't start

Suddenly, after simply adding a few tables to database within the install... the service won't start. Any help welcome. systemctl start mariadb Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for…
Ryan Prentiss
  • 291
  • 5
  • 11
1
vote
0 answers

How to use input variables within a systemd script?

I'm trying to write a systemd service that both starts at boot time and can be used during a user session using the "sudo systemctl restart" command. However, when using this command I need to be able to pass different parameters such as "-x" or…
Fnux
  • 173
  • 1
  • 8
1
vote
1 answer

systemctl list-units for type target not behaving as expected

Summary: 'systemctl list-units --type=target --all' does not always list targets that I've added Detail: I have a project that consists of several related daemons; let's call this project 'Foo.' The daemons are managed by systemd service units, and…
1
vote
0 answers

OpenVPN restart systemd service if TLS error occured

I have a systemctl service which starts openvpn command with given config file. openvpn *filename* But if somebody uses same certificate to open VPN from another device - service logs TLS errors and VPN stops working. But the service doesn't stop…
Dmitry
  • 21
  • 1