515
questions
0
votes
0
answers
41
views
Podman container error "System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down"
Inside the container I need to check the status of a service if it running, but systemctl gives Failed to connect to bus: Host is down error.
And tried with service command but service command is not ...
1
vote
1
answer
48
views
Creating a miminal podman system service
I'm trying to create a minimal podman system service (on Rocky Linux 9.4).
What I did
This is my service unit (/etc/systemd/system/echo.service):
[Unit]
Description=Test Echo service
After=network....
-1
votes
2
answers
19
views
ExecStart systemd start a foreground shell, timeout failure
ExecStart=/opt/prometheus-2.53.0.linux-amd64/prometheus --config.file=/opt/prometheus-2.53.0.linux-amd64/prometheus.yml failure.
timeout. because prometheus keeps in foreground.
ExecStart=/opt/...
0
votes
0
answers
17
views
Starting mongodb via systemctl and a non-default directory
I'm debugging a mongodb (7.0) instance which should start via systemctl on AlmaLinux 9 and use a non-default data directory (/data/mongo) - after the typical problems and googling, the file ...
0
votes
0
answers
16
views
unable to use snap to install netbeans on mx-linux
I'm trying to install netbeans following the official step-by-step but when i try sudo snap install snapd I get
error: cannot communicate with server:
Post "http://localhost/v2/snaps/snapd":...
1
vote
1
answer
62
views
Send `kill -SIGUSR1` to daemon process
Suppose you have a daemon process owned by user foo and group foo and can be initiated via sudo systemctl start foo.service.
This daemon spends most of its time waiting on a sub process sleep, but can ...
0
votes
0
answers
22
views
systemctl and uwsgi issue for remote django app
when I run uwsgi manually with uwsgi --ini uwsgi.ini command, it runs properly, but when I run sudo systemctl start uwsgi it will run properly (i.e., journalctl -b -u uwsgi or sudo systemctl status ...
0
votes
0
answers
60
views
Systemctl not restarting symfony messenger consumer
I have a Symfony (6.4) messenger consumer that processes some background queues.
As mentioned in the documentation is a good practice to restart it every hour.
So I am using systemctl to handle it.
...
0
votes
0
answers
14
views
Hashicorp Go Plugins Not Deleting/Cleaning Up Socket Files When SIGTERM Is Sent
Apologies if this isn't the right place to post it, I wasn't sure if this question was meant to be posted here or on Superuser.
I’m using Go Plugin System over RPC as part of a service that I’m ...
0
votes
1
answer
107
views
fail to start service on fedora os
I need run program in Fedora OS after boot.
I create service file in:
/etc/systemd/system/muxponder.service
File looks like this:
[Unit]
Description=Your Program Description
[Service]
Type=simple
...
0
votes
0
answers
74
views
gunicorn.service: Failed at step CHDIR spawning */fresh_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:`**
`Apr 12 23:57:08 ...
-1
votes
1
answer
130
views
Python script not working through systemctl .service file
I'm trying to set up a simple script to run with systemctl timer.
To test if the .service file works i launch it: sudo systemctl start mioScript.service
but nothing happen. If i check the status:
...
-1
votes
1
answer
645
views
sudo systemctl daemon-reload not working through ssh command [closed]
After modifying systemctl myService.service file, when command "sudo systemctl daemon-reload" is executed remotely via SSH through a bash sh script:
The myService.service file is modified ...
0
votes
0
answers
15
views
Node js on apache2 failed
I am trying to setup a node server on a apache...maybe thats a dumb idea idk.
When I try to start my node-project.service I get the following error.
node-project.service:
[Unit]
Description=Node.js ...
0
votes
0
answers
31
views
how to solve the problem of the script freezing after restarting the service in paramiko python
Simple script:
import json
import paramiko
from rich import print, pretty, inspect
from settings import domain
pretty.install()
convert_dom = json.dumps(domain)
set_domain = json.loads(convert_dom)
ip ...
0
votes
1
answer
95
views
Docker container not existing when running it as a service
I am currently trying to set up a docker container to start on boot through systemctl, but I am getting the following error in journalctl when trying to start the service:
Mar 08 14:28:22 humerus ...
2
votes
1
answer
279
views
Why does Ansible list a service, but with a status "not-found"?
TL;DR
What does a service status of not-found mean in Ansible's service facts?
More in detail:
With Ansible you can list all services on a host along with their states by:
ansible -m service_facts ...
0
votes
1
answer
347
views
Ansible - cant start or stop service with right permission
I have a weird issue where I cant start or stop a service using systemd module. I get the following error if I run the ansible task:
"Unable to stop service inubit.service: Failed to stop inubit....
-3
votes
1
answer
119
views
bitbucket pipeline : systemctl (systemd)
I have looked around, and I am afraid it's not possible, but maybe someone has an idea or some kind of workaround:
Is there any way to run services via systemctl on a bitbucket pipeline ?
I have code ...
0
votes
0
answers
24
views
What does service_name@configuration_file.conf do when running systemctl commands?
What does the following systemctl command do?
$ sudo systemctl start [email protected]
I am unfamiliar with this particular syntax. What does the @server.service part of this command do? ...
0
votes
0
answers
74
views
named.service is failing to start
This is the log. I don't know what problem is. I have checked many stack but I am not getting any solution.
[root@srv ~]# systemctl status named.service
● named.service - Berkeley Internet Name ...
2
votes
2
answers
633
views
Running Telegram bot made on python as background service on Ubuntu
Couldn't run telegram bot as background service. When run directly from terminal - it works fine.
I've made a simple telegram bot using telebot library:
import telebot
TOKEN = 'my-token'
bot = ...
0
votes
1
answer
565
views
Postgresql preset disabled
i'm trying to start postgresql with systemctl, but the preset is disabled. I need postgresql to start armitage. How can I enable the preset?
i've tried another command to enable the service, but the ...
0
votes
0
answers
305
views
Tomcat 9 on RHEL 9.3 systemctl service fails: cannot touch '$CATALINA_HOME/logs/catalina.out': No such file or directory
Tomcat starts successfully when run from the tomcat user in RHEL 9.3 using $CATALINA_HOME/bin/startup.sh. I am using for my java:
java version "21.0.2" 2024-01-16 LTS
Java(TM) SE Runtime ...
0
votes
1
answer
261
views
using openvpn-reconnect but Options error: In [CMD-LINE]:1: Error opening configuration file
According to ArchWiki
I added a systemctl service to send the SIGNUP message to the openvpn proccess to make it restart.
The problem is that this proccess is started correctly if using sudo systemctl ...
0
votes
0
answers
26
views
What is the right way to create a small "shortcuts driven" desktop application in Ubuntu?
I want to create a small "shortcuts driven" desktop application in Ubuntu. Essentially my application will listen for three key combinations and run some code (to modify wayland compositor ...
0
votes
1
answer
208
views
HAProxy SSL config works without systemctl, but with systemctl it is getting an error
OS: fedora
The error show by journalctl -u haproxy.service --since today --no-pager is:
Dec 01 15:17:13 fedora systemd[1]: Starting haproxy.service - HAProxy Load Balancer...
Dec 01 15:17:13 fedora ...
1
vote
0
answers
358
views
Docker fails to restart container on boot when using a mounted cifs volume
I have a cifs network share, which I have mounted in a docker container. The docker container has 'restart: always'. Upon reboot, the docker container attempts to start up before the cifs volume ...
0
votes
0
answers
25
views
Systemctl service restarts if depend service restarts
I created a systemctl service which initializes an application and prepares dependencies (processing values) for the application's web interface. The web interface is done via nginx. s-prepare.service ...
1
vote
1
answer
485
views
How do I autostart a tmux bash script as a startup service in Ubuntu?
I used to run a TShock server on a Raspberry Pi 4. I've recently gotten more powerful hardware, an Intel "Skull Canyon" NUC6i7KYK with a new installation of Ubuntu 23.10, and I'm trying to ...
-1
votes
1
answer
102
views
php in-browser script cant restart/stop/start proccess
I have a simple script, which must restart the proccess on server:
exec("systemctl stop listener.service");
This script cannot be executed from browser and i don't know what's wrong with him....
0
votes
2
answers
125
views
subprocess.check_output of service state on Remote
I want to check the status of <SERVICE> on QEMU instance (standard connection is ssh [email protected]).
When I do
sshpass -p none ssh -o StrictHostKeyChecking=no [email protected] -t 'systemctl ...
0
votes
0
answers
227
views
systemd[1]: [/etc/systemd/system/stonedb.service:4] Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'
I have created a custom service but when I try to check the status of it then I get this errors:
[root@stonedb system]# systemctl daemon-reload && systemctl status stonedb -l
● stonedb.service ...
0
votes
0
answers
22
views
apt purge nginx return failure
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since ...
0
votes
1
answer
55
views
Turning ON / OFF auto restarting the process inside docker container, when container starts
We use ubuntu docker container for development, in which case we mount different branches of a git repo inside container and test them. This requires changing code, recompiling it and starting / ...
0
votes
0
answers
208
views
How to run minikube dashboard using systemctl
I want to use the systemctl command to run minikube dashboard and kubectl proxy to make it easier for me to access dashboard from the external environment.
Here is my configuration:
/homw/wj/minikube-...
1
vote
1
answer
59
views
Why doesn't my application behave the same when it's launched by systemd.service as when it's launched manually?
I've got a dotnet API running on my raspberry, when I lauch the executable manually, it listens on
http://<raspberry_ip>:<custom-port> as configured on my appsettings.json but when I use ...
0
votes
0
answers
388
views
sonar.service: Failed with result 'start-limit-hit'
I installed sonarqube-9.7.3 on Ubuntu 20.04.
with postgres 15.
OpenJDK11
following the guide below https://www.vultr.com/docs/install-sonarqube-on-ubuntu-20-04-lts/
and when trying systemctl start ...
-2
votes
1
answer
629
views
systemd show <service-name> --property=environment" shows only one value [closed]
I am working on a script to extract a specific environment variable - CONFLUENT_SECURITY_MASTER_KEY defined in the unit for the service confluent-server.service and use that value in the script to ...
0
votes
1
answer
606
views
systemctl status returning active even when the service is stopped
I have stopped a systemctl service using below command
systemctl stop service_name
but the below command is showing it as active
systemctl is_active service_name
I want to know whether the service is ...
0
votes
1
answer
477
views
Getting systemctl service status
I am trying to get the status of systemctl service using below command.
systemctl --no-pager status service_name | grep "Active" | cut -d ":" -f2
The output i am getting is
active ...
0
votes
0
answers
482
views
systemctl throws error when starting PostgreSQL 15 on RockyLinux 8
i am trying to upgrade my Database from PGSQL 11 to 15. Installation was a charme as well as the registering as a deamon. But starting the deamon (systemctl) is simply not working. And I cannot ...
0
votes
1
answer
114
views
How can I enable colors in debian systemd service
I have created a program who logs some informations in the given format :
[ INFO ] [<path>/main_platform/__init__.py:handle:50] Le monde a été enregistré avec succès
[ INFO ] [<path&...
0
votes
0
answers
106
views
Docker Container systemctl broken when docker stop/restart
Environment
Ubuntu 22.04.4 LTS
Docker (latest)
Code
sudo docker run --gpus all -it -p 8888:8888 -p 5222:22 --name jupytorch-main pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
Situation
I am a data ...
0
votes
0
answers
425
views
"service" vs. "systemctl" on running Docker container? With --privileged option?
I have a script (setup.sh) that removes any old tails of systemd inside ubuntu:focal Docker container and installs fresh ones:
set -e
apt-get update
apt-get install --yes apt-utils
apt-get install -...
1
vote
1
answer
2k
views
Tomcat not loading using systemctl service
I've installed Tomcat 8.5 on my Ubuntu 22.04 machine. I'm able to test tomcat on localhost:8080 using startup.sh file and systemctl service. But, the moment I'm deploying my application's war file on ...
1
vote
1
answer
760
views
mongod.service remains in "Active: activating (start)" and never reaches "Active: active (running)
my mongod.service on Ubuntu 20.04.6 LTS with Mongo 6.0.8 never reaches "Active: active (running)" and remains in "Active: activating (start)". The mongod instance is up and running ...
1
vote
3
answers
95
views
Unable to import pandas on a linux service
I'm trying to create a simple service using Python and the service needs to import pandas for manipulating dataframes. I noticed that when I use "import pandas as pd", the service failed. I ...
2
votes
0
answers
22
views
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....
1
vote
1
answer
313
views
The difference both reboot and poweroff of Linux by systemctl control
Both reboot and poweroff are mapped to /bin/systemctl, how does systemctl control shutdown and restart. When entering reboot or poweroff, how does systemctl get which command should be executed?
It ...