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

Laravel systemd queue job stops, when using restart=on-failure

We have a Laravel SystemD job for the queue, which for example sends out notification email. Now we noticed, that the SystemD job is stopped when a email delivery did not work. This is how our service definition looks like: /etc/systemd/system # cat…
Alex
  • 32,506
  • 16
  • 106
  • 171
4
votes
2 answers

Graceful exit bash script when running as a service with systemctl

I've set up a service in /etc/systemd/system/ called my_script.service. After that I run: sudo systemctl daemon-reload sudo systemctl start my_script.service sudo systemctl stop my_script.service I would like the script to "die" gracefully. When I…
1qazxsw2
  • 2,589
  • 4
  • 20
  • 19
4
votes
1 answer

systemd Unable to find Java

I'm facing a strange behaviour on a Centos Dist trying to run a bootable jar created with spring boot. If I run the jar app from the shell it runs perfectly When running the app with a service created with the following…
eBuisan
  • 98
  • 1
  • 7
4
votes
2 answers

restart systemd-networkd .link files without reboot

I have a eth0.link file to change MAC address of interface eth0. I want to apply this change without reboot. I tried systemctl daemon-reload systemctl daemon-reexec systemctl restart systemd-networkd Is any other to restart .link file.
furkan
  • 79
  • 5
4
votes
0 answers

systemctl service hang on start command, no logs in journalctl

I am trying to understand why my service isn't starting on some of my devices but is starting on others. When I try to do systemctl start pishock.service it just hangs, it doesn't give me any output, it doesn't start the service, it just hangs…
Mathias Chartier
  • 199
  • 2
  • 15
4
votes
2 answers

Go application run as systemd service

We are running a Golang application that internally runs an autoupdate module to recieve over the air updates. At the time of a new update, the autoupdate module downloads the new version from s3 and invokes an autoupdate bash script present in the…
achilles
  • 536
  • 5
  • 16
4
votes
3 answers

How to ignore a failure of an 'ExecStart' in Systemd

I'm trying to create a service which runs several scripts using ExecStart and some of them can be failed. I need to ignore these failed scripts and return a success for the service. Previously I used upstart and this is how I achieved it. start on…
Choxmi
  • 1,584
  • 4
  • 29
  • 47
4
votes
2 answers

Docker 17 fails to start in Centos 7

We have installed docker 17.12 in our Centos 7.x and after the installation is complete, am facing an error while trying to start the docker service. Initially, I tried for systemctl docker start then for more output on this when I tried journalctl…
4
votes
3 answers

How does one restart Openshift Origin master on Centos 7?

Openshift origin was installed via the ansible playbooks. According to this documentation, the correct command to restart is: $ systemctl restart atomic-openshift-master-api atomic-openshift-master-controllers However, this just results in: Failed…
MirroredFate
  • 12,396
  • 14
  • 68
  • 100
4
votes
1 answer

systemd and sway socket not detected

I am a new user of swaywm and fairly new with creating my own custom systemd services. I previously used Openbox, feh and systemd to created a scripted wallpaper change every 30 min. The below is a foo.service which functions fine in…
trentonknight
  • 261
  • 2
  • 11
4
votes
2 answers

Why can't upload files into dropbox at shutdown?

Fix as jayant say. cat upload.sh /home/Dropbox-Uploader/dropbox_uploader.sh upload -f /home/Dropbox-Uploader/.dropbox_uploader /home/material/* / date >> /home/upload.log All files in directory material can be uploaded into my dropbox…
showkey
  • 482
  • 42
  • 140
  • 295
4
votes
2 answers

Odoo service restart and update using systemctl

Odoo service is started by systemctl start odoo. I am usin Centos. When I want to update my changed *.py code I used to do like this: 1. systemctl stop odoo Then I update my module and database by useing this: 2. ./odoo.py -c openerp-server.conf -u…
fueggit
  • 859
  • 1
  • 22
  • 44
4
votes
0 answers

Why number of systemctl tasks more then number of process threads

I have my multithread application running under systemd service. When it runs without workload number of threads in /proc/
/status and in output of systemctl are same systemctl show -p TasksCurrent TasksCurrent=287 cat…
4
votes
0 answers

How to properly setup systemctl service with gunicorn?

I have a Django project that I run with gunicorn. My manage.py file is in /home/Projects/myproject/myproject. My virtualenv is in /home/myproject. In /lib/systemd/system I created a myproject.service file: [Unit] Description=My…
Saša Kalaba
  • 4,241
  • 6
  • 29
  • 52
4
votes
0 answers

Auto-start service for systemd: Invalid Argument

I am trying to start service at startup. My service should start .exe file with mono. When I try to just run it with: sudo systemctl start myservice.service Everything goes okay and my app is running. However when i run status for service i get…
Pavol
  • 552
  • 8
  • 19