Questions tagged [systemctl]

systemctl is used to control the systemd system and service manager.

systemctl can be used to control the systemd system/service manager.

Reference: http://www.dsm.fordham.edu/cgi-bin/man-cgi.pl?topic=systemctl

503 questions
0
votes
2 answers

How to Run Systemd Service file with root access in Ubuntu 16.04

I am having a service file for mongodb at /lib/systemd/system/mongod.service and my file contains following data as below [Unit] Description=High-performance, schema-free document-oriented…
Ratan Uday Kumar
  • 5,738
  • 6
  • 35
  • 54
0
votes
1 answer

Google Compute Engine - Ubuntu - Shutdown - Cloud SQL Proxy Connection Closed

Services Used: Google Compute Engine (GCE) (Always-On or Preemptible) Ubuntu 16.04 LTS PHP Google Cloud SQL Google Cloud SQL Proxy Problem: Google Cloud SQL Proxy Connection is closed before the Google Shutdown Script is started. Issue Caused: …
0
votes
1 answer

systemctl exits mono service with status=0/SUCCESS

I am attempting to launch a mono program with systemctl. My .service looks like this: [Unit] Description=Starts results sender After=network.target systemd.mount [Service] Type=forking ExecStart=/usr/bin/mono…
arvids
  • 184
  • 2
  • 11
0
votes
0 answers

Copy file using systemctl

I create python script for embedded-linux, the script monitor USB storage insertion and removal, and if an USB drive insert then the computer copy a file to the USB drive. The script need to be started after boot so I create service in my system…
kkr4k
  • 123
  • 1
  • 8
0
votes
2 answers

systemctl show does not show several properties

I am working with systemctl to get value of the EnvironmentFile property from ssh.service unit file using the command systemctl show ssh.service -p EnvironmentFile but it returns empty result. The unit file itself contains this property. For example…
frist
  • 1,918
  • 12
  • 25
0
votes
0 answers

ImportError when starting Celery in daemon mode

My Celery works well in CLI mode: My project folder is organised this way: jive/jive.py jive.py file looks like: app = Celery(include=['tasks.dummy_tasks','tasks.people_tasks',]) app.config_from_object(CELERY_CONFIG_PATH) I run a worker in CLI…
David Dahan
  • 10,576
  • 11
  • 64
  • 137
0
votes
1 answer

Starting SSL authenticated MQTT broker as service on Unix

Server/client SSL authentication is enabled for MQTT broker. When user starts broker using config file, the user is prompted to enter SSL passphrase and MQTT broker gets started after due auth check. I have followed the below link to start MQTT…
blueSky
  • 53
  • 1
  • 2
  • 10
0
votes
1 answer

Understanding the status in Systemctl utility

I have a service and i have created a service unit file to support the execution of the service in RHEL7.X When i am running the service and then i am running the status command i am getting the below console output:- Loaded: loaded…
iftekhar khan
  • 178
  • 12
0
votes
1 answer

ExecStopPost is not getting executed if Service is not running in Systemctl

The issue is that my service is not running and i tried to execute the stop service command. So as the service is not running if i try to stop the service by using systemctl stop $servicename.service the ExecStop command will not get executed and…
iftekhar khan
  • 178
  • 12
0
votes
1 answer

Purpose of [RequiredBy] directive in Systemctl

If we have the [Requires] directive in the [Unit] part of a service unit file then why do we also need [RequiredBy] directive in the [Install] section of the service unit file..I understand that the directives under the [Install] part is executed…
iftekhar khan
  • 178
  • 12
0
votes
2 answers

Services in RHEL7

I already have a service that was written for RHEL6 and there i had some custom service commands that i can execute.Please see below for the extract from the script. case "$1" in 'start') start ;; 'stop') stopit …
iftekhar khan
  • 178
  • 12
0
votes
1 answer

systemctl from inside docker container fails with D-Bus connection error

I have setup a docker container based on OpenSuse 12, installed some additional files and copied some installer binaries into the container. So far everything fine. From inside a running image of the container I now need to run the aforementioned …
siliconchris
  • 613
  • 2
  • 9
  • 22
0
votes
1 answer

Systemd, how to mount a device at boot, but disable automount after boot

I do not seem to find a simple solution to the following problem: I have a device listed in fstab, this should get mounted at boot. But if I manually unmount/remove the device after boot and if I present the device later on, systemd sees the device…
0
votes
1 answer

Nginx + Systemd/Systemctl + Django not working (502 bad gateway)

I've been at this for hours and yet I cannot figure out why my setup isn't working. If I run the command that's in exec on its own, I can access the page through my browser just fine. But when I try to run it as a service, I get a 502: Bad…
tayoung
  • 411
  • 1
  • 4
  • 16
0
votes
3 answers

systemctl error on running systemctl start

faced this error while running my application using systemctl where is actually the problem with?systemctl error on running systemctl start ? Jul 27 16:20:36 nikhil-Lenovo-ideapad-300-15ISK systemd[1]: Started Web Interface. Jul 27…
radha
  • 47
  • 1
  • 6