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
3
votes
0 answers

Setting timeout for custom service (chkconfig)

I wrote a custom script that I want to be executed each time my server starts and stops. I added the script with chkconfig: chkconfig --add myservice This is working fine. But from time to time I run into timeout. I check the systemctl settings and…
A. Frank
  • 83
  • 5
3
votes
2 answers

Disable docker image being run as daemon (restart always policy)

Every time I start the docker daemon (via systemctl start docker.service), a bunch of images start running from a docker-compose config that I previously run. How can I disable them from starting up when the docker daemon starts up? I haven't been…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
3
votes
1 answer

systemctl enable works but systemctl --user enable does not

I have a DO droplet running Ubuntu 16.04.1x64 and I'm trying to run IPFS as a systemd service. I've gone ahead and created a user "connor" and installed IPFS following the instructions here. I'm storing the service as "ipfs.service" in…
Connor Gutman
  • 125
  • 2
  • 12
2
votes
0 answers

why this JsFile can't excute some shell, when systemctl service excution situation

when I excute this program directly, all exec() shell is working,,,, But,,,, MyStory vv I registered my nodejs program in systemctl, service name is speaker and path is /etc/systemd/system/speaker.service content…
DONGHAEY
  • 19
  • 1
2
votes
0 answers

GitHub Action - Failed to restart XXX.service: Interactive authentication required

I'm trying to auto-deploy changes in Django project using GitHub Actions. There is a problem with restarting services. It says: Failed to restart gunicorn/nginx.service: Interactive authentication required. How can I make it work? This is the…
Milano
  • 18,048
  • 37
  • 153
  • 353
2
votes
2 answers

Get running services and output the service with versions on linux

How would I get all the list of services that are running on linux and print their versions? It needs to be a combination of: To get a list of running Services: systemctl list-units -t service --state=active --plain --no-legend --no-page grab the…
takobaba
  • 306
  • 1
  • 4
  • 15
2
votes
1 answer

Ubuntu etcd.service start failed with (code = exited, status=1/FAILURE)

When I have written my etcd.service file, and run with the systemctl start etcd.service command, it gives this error: etcd.service - ve489 etcd service Loaded: loaded (/lib/systemd/system/etcd.service; enabled; vendor preset: enabled) …
Naughtybeds
  • 29
  • 1
  • 2
2
votes
0 answers

Error 500 using gin with simple GET in golang deployed service

Something rare is happening, the code running locally with no problems, and even run with no problems in the server when I call it using "go main.go", but after build and set the systemctl service it's throwing an error…
Amador
  • 41
  • 4
2
votes
3 answers

Check whether the service is installed or not in Linux

I am trying to get the service whether it is installed or not. The script is working fine with systemctl but fails where systemctl is not installed. As an alternative to that I am using service command to check but by doing so I am unable to run the…
user16133873
2
votes
1 answer

Rootless-mode Docker daemon not running after logging back in (SSH)

I have set up rootless mode Docker for a non-root user on an Ubuntu 18.04 LTS box, according to the official instructions. I set DOCKER_HOST to unix://$XDG_RUNTIME_DIR/docker.sock in the .profile for the user. This is actually a non-root user…
ChrisM
  • 2,128
  • 1
  • 23
  • 41
2
votes
0 answers

Why use /etc/systemd/system vs. /lib/systemd/system?

Company I work for develops Debian package files for our software. Somewhere along the line the responsibility passed from one person to another and things started being done in a different way. Previously we put our systemctl service files into…
Digital Larry
  • 21
  • 1
  • 3
2
votes
1 answer

Execute systemd service just after another using a timer

I want the apt-update timer to run on Sunday night between 4:30 and 5:30, and right after, the apt-upgrade timer. I have these settings: cat << 'EOF' > /etc/systemd/system/apt-daily.timer [Unit] Description=Daily apt download…
2
votes
1 answer

What is the reason of mongod service error?

I recently added mongo/mongod to my VPS, and it was working really well. But today I figured out the mongod service was down, for no apparent reason... I tried to start it back but I keep getting the following error: ● mongod.service - MongoDB…
Gugu72
  • 2,052
  • 13
  • 35
2
votes
0 answers

gunicorn.service: Failed at step CHDIR spawning */env/bin/gunicorn: No such file or directory

gunicorn.service cannot open WorkingDirectory and the gunicorn executable. I think it's about permissions but I don't know how I can solve it. sudo systemctl status gunicorn: Mar 15 12:12:42 ns1.localhost.com systemd[1]: Started gunicorn daemon. Mar…
Umut Çağdaş Coşkun
  • 1,197
  • 2
  • 15
  • 33
2
votes
3 answers

Enable systemctl in Docker container

I am trying to create my own docker container, and custom service which I created for my work, this is my service file [1/1] …
ahmad blat
  • 41
  • 1
  • 1
  • 4