Questions tagged [services]

A Linux service is an application (or set of applications) that runs in the background waiting to be used, or carrying out essential tasks.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

systemctl failed state after many restart of service

in some cases , when performing by systemctl , many systemctl restart the we get failed state is it possible in systemctl configuration to configure the service in way that service will not failed ...
0
votes
0answers
11 views

Service running on RHEL7.5 is not running on RHEL8 (httpd service)

I have service which was working fine with RHEL 7.5, now I have upgraded to RHEL 8 and same service is failing with below status: Service.service - LSB: Web Server Loaded: loaded (/etc/rc.d/init.d/...
5
votes
2answers
22k views

systemd “status=203/EXEC” error when creating new service

I've created a new service for a Python script that works when running standalone but gives errors below when run through systemd : Oct 02 12:17:09 raspberrypi systemd[1]: Started Read pressure And ...
0
votes
2answers
980 views

Getting error when stopping auditd

I have recently made changes to my audit.rules file on a 32bit RHEL 6.9 machine and I know that since the end of the file has -e 2 to make the file immutable a reboot is required for the new rules to ...
0
votes
2answers
32 views

Opening web browser on boot

Task: Start Firefox on startup Linux (Ubuntu 18.04 LTS) Problem: I think the problem is that I want to start a GUI program What am I doing wrong and how to solve the problem ? Systemd files in  ~/....
7
votes
1answer
2k views

Wait to start Transmission daemon until after USB drive has mounted?

I'm running transmission-daemon as a systemd service on OSMC. When opening its remote control web interface after a reboot all transfers are almost always halted with the message "Error: No data found!...
0
votes
0answers
22 views

systemd: SSH service does not start at boot

Whenever I boot my system (Ubuntu 16.04), I cannot log in via ssh and the service is reported as inactive (dead) $ systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/...
0
votes
1answer
39 views

How I can get $(logname) inside systemd exec command?

I'm writting a systemd service (/etc/systemd/system/name.service). This service execute a script placed in ~/folder/script.sh. I can't use ~/ inside the ExecStart command so I use /home/$(logname)/...
2
votes
1answer
1k views

Bluez-can't start bluetooth.service

i have downgraded my bluez version from 5 to 4.79.First i uninstalled bluez5 with sudo apt-get purge and then i did sudo apt-get autoremove. Then i wget the tar file and did the classic ./configure , ...
0
votes
0answers
29 views

Ubuntu 18.04 - Mysterious __dummy__ file appeared in my Downloads folder

While unpacking the zip file I got from the Internet (which I had prepared myself before on the other machine I owe) a Mysterious __dummy__ file appeared in my Download folder for a brief moment. It ...
0
votes
2answers
57 views

What does “status=10/n/a” mean in systemd output?

I am developing a .service file so that systemd can manage an app as a service on Amazon Linux 2. But when I type systemctl start my-new-service, the following error is reported in the logs: Mar ...
0
votes
1answer
21 views

On systemctl start, “Failed to start gitlab-runner.service: Unit is not loaded properly: Bad message.”

Whenever I run systemctl start gitlab-runner.service I get, systemctl start gitlab-runner.service Failed to start gitlab-runner.service: Unit is not loaded properly: Bad message. See system logs and ...
1
vote
1answer
33 views

crontab.service file not found despite installed and configured crontab

I want to set up crontab every minute on Manjaro, so I've put some script every minute with: $ crontab -e * * * * * /path/to/my/script.sh crontab: installing new crontab Then I see it is installed $...
0
votes
0answers
25 views

WSL Run Service at Start

I'm honestly not sure if this is an issue with WSL or I'm just doing something wrong for Ubuntu in general, but I cannot get the cron service to run at start on my WSL system. It starts just fine ...
0
votes
0answers
25 views

Debian: logging out causes services to become unavailable

I run Bullseye with XFCE on a Dell Inpiron 5567. I have two users on this system: mine and a Guest; whenever I log out from whichever was logged in first and log in again, [b]even as my user[/b], ...
3
votes
2answers
212 views

Is there a way to make systemd shutdown the system when a service exits with a particular code (e.g. exit code 0)?

I have few Linux boxes each running a service. This is the only important process running on these machines. However, sometimes due to some internal state-changes in the service, it will gracefully ...
0
votes
1answer
1k views

Unable to restart lsyncd after killing it

I noticed that I was not getting new backups on our DR, so I took a look and saw that lsyncd was stuck on the server that sends to the DR via lsyncd. Our backup logs showed endless errors of "Waiting ...
2
votes
2answers
577 views

How to configure Systemd User Service with a Timer

I have a systemd user service that works as expected. It is started like this: systemctl start test@user The problem is that I need to run this service on a timer possibly for multiple users. There ...
4
votes
3answers
10k views

Disable bluetooth at boot

I'm trying to disable the bluetooth at boot, without blacklisting the kernel module. I commented the following two lines in the /etc/init/bluetooth.conf: start on started dbus stop on stopping dbus ...
1
vote
2answers
63 views

SSH not working after reboot

I was looking on Google for a way to reboot my Debain server, I found the following source and I typed: systemctl reboot After doing this, I can't SSH anymore to my Debian server. How can I enable ...
1
vote
1answer
90 views

What replaces /etc/services in openSUSE, and how

I am running openSUSE Linux, the Tumbleweed version. I discovered that it does not use an /etc/services file, though I do not know what is replacing it, or how it is done, and I do not have much ...
0
votes
0answers
22 views

saned conflicting with saned.socket

I'm running Ubuntu 19.10 and I've successfully managed to configure an Epson network scanner in my LAN using sane utility. Although the scanner works fine, command sudo systemctl status saned shows ...
0
votes
0answers
21 views

Linux Heartbeat for cron and services

I have few vital scripts that run using cron and some other are services. In past experiences we have broken those scripts by mistake and I was wondering if there is some sort of 'Heartbeat' that ...
0
votes
2answers
50 views

mariadb server wont start, modular dependency problems?

I'm trying to create a maridb table on a rhel instance in my ec2 container, but everytime I try to start mariadb I get this: Redirecting to /bin/systemctl start mariadb-server.service Failed to start ...
0
votes
0answers
103 views

Why isn't simple commands working on new users in Kali Linux?

I make an new user, logged in to root in terminal, but I can't do service commands. I think it's more commands, but I am not sure. I tried typing in: service tor start And I received an error ...
1
vote
1answer
1k views

Systemd watchdog kills services after changing system time manually

I have been investigating to fix what appears to be a problem with systemd watchdog but with no success. I have a bunch of services that are of Type=notify. If the system time is set backwards, every ...
0
votes
1answer
2k views

Debian startup script doesn't start

I'm trying to make a specific script load on start on Debian. I have tried to put the script on /etc/rc.local but no success. Now I have made a service script that runs my specific script. The code of ...
0
votes
0answers
26 views

Stopping subsystem

I am trying to stop a subsystem. Here how the subsystem is defined: mkssys -s mytest -p "/home/tester/testServices/bin/test/script.sh" -a "start" -u 0 -R -Q -d -S -n 9 -f 15 Now the script.sh is the ...
0
votes
0answers
12 views

Why service command does not list my manually created systemd services?

I have created few systemd services that are enabled and active but when I use the command service --status-all then mostly all commands shows active or not but not the ones i created. Their location ...
0
votes
0answers
26 views

Create service for binary file on Ubuntu

I have an executable file in my user directory. It can be called by a command like this. $ /home/dev/executeme It is neither a shell script nor bash, it's like windows .exe How can I create a ...
1
vote
2answers
12k views

Creating x11vnc system service

OS: GNU/Linux Debian 9 with Cinnamon DE. Since we managed to get VNC on Debian server running, thanks to GAD3R again, it's time to make VNC a regular service. I want it to be running all the time, ...
0
votes
0answers
32 views

Start & Stop systemd units one after another

I have 2 different services gateway.service and plugin.service After referring systemd unit documentation, able to start both services using Requires= directive. Scenario working: When gateway....
1
vote
2answers
5k views

Delay systemd service if file exist

I want to delay the start of a service if a file exists (instead of fail the service if the file exist, as with ConditionPathExists=) but did not find anything in unit documentation Is it technically ...
0
votes
0answers
17 views

xscreensaver systemd user service init : wait for DISPLAY

I have xscreensaver running as a user service and see that often it fails to start. The status shows DISPLAY not set. I've changed the service definition to now retry and that seems to be working [...
0
votes
1answer
52 views

CentOS 7 MongoDB fails to start

I am running Linux centos-002 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux. I installed newest MongoDB according to the official guide (I did not follow ...
1
vote
0answers
26 views

systemd activates unit ran by timer upon changing the OnCalendar directive

I have a systemd timer setup with this OnCalendar value: OnCalendar=*-*-* 05:35:00 Upon changing it to OnCalendar=*-*-* 06:35:00 And running systemctl daemon-reload to reload the configratuion ...
0
votes
1answer
3k views

Systemd service: Restart unit not found unless stopped first

I have a systemd defined service, that cannot be restarted using systemctl unless I first do a stop. Systemctl claims that the unit does not exists. This happens everytime I reboot until I execute ...
0
votes
0answers
18 views

Service script not receiving $LOGS_DIRECTORY nor other environment variables

In /lib/systemd/system/myservice.service, I have [Unit] Description=Example systemd service. [Service] Type=simple Environment=TEST_TEST=test StateDirectory=testservice ExecStart=/usr/bin/env /usr/...
0
votes
0answers
25 views

Creating AIX daemon service

I have a shell script that prints every 30 seconds essential information in a file.What are the steps to create AIX daemon service and be able to start and stop that service?
1
vote
1answer
26 views

How to prevent systemd to stop a service on reboot

I have the following service file which is used to turn on and off an external device: [Unit] Description=Manage the UR controller, turn it off when the system goes down. Requires=network.target ...
1
vote
0answers
43 views

Cannot setup Samba

I want to access files from my Raspberry on my Windows machine. I did it previously, but I resetted both my devices some time ago. I haven't made any advanced network configurations to them yet. I ...
0
votes
2answers
52 views

AIX service wrong status

I came across a problem with visualising the status of an AIX service. So first I create subsystem pointing to a shell script which I will use for running. mkssys -s testService -p /etc/rc.d/init.d/...
1
vote
1answer
56 views

AIX services logging

I have created sample subsystem for service as this: mkssys -s testService -p /usr/opt/myscript -a "-n" -u -R -S -f 9 -n 15 Now when I start it via : startsrc -s testService I get the message: ...
0
votes
1answer
26 views

Cannot remove a firewall service previously created

I've added a new service in my CentOS server using the following command: firewall-cmd --permanent --add-service=wiremock sudo firewall-cmd --reload then I've removed it through firewall-cmd --...
1
vote
2answers
608 views

How to check port opened on running a service?

Let's say I started a service by using sudo service service_name start, I am interested in knowing all the port opened by this service. I can know port - program mapping by sudo netstat -tulnp but I ...
1
vote
1answer
2k views

Unknown runlevel on Ubuntu 14.04, services not starting on boot

I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot ...
2
votes
2answers
350 views

How do I re-enable the lightdm.service?

At some point, in the past, I must have disabled lightdm service with: systemctl disable lightdm.service or something similar on my Debian with Cinnamon desktop. Unfortunately, I will now need it, ...
1
vote
2answers
3k views

openfire chat server Daemon not getting started while server starts up every time

We are using a Chat server It is installed with openfire, for local office use. Every morning while server getting ON openfire service is not getting started, I have added it in run levels too, Using ...
3
votes
0answers
21 views

Restart user systemd after groupadd

I let systemd manage a service myservice in a user's homedir. When I add that user to a new group, the running service does not pick up that group. Even when restarting with systemctl --user restart ...
0
votes
2answers
1k views

How to stop sshd service without using systemctl?

I want to use Intel Pin Tool to instrument open-ssh server. I do not know any way to do that other than following command. $PIN_HOME/pin -t somepintool.so -- /usr/sbin/sshd So, mainly I want to know ...

1
2 3 4 5
14