2022 Developer Survey is open! Take survey.

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
2 votes
1 answer
32 views

Why some services got masked in ubuntu 20.04

On an Ubuntu 20.04 installation, how can I find out, why some services got masked? There's only answers about specific services, but I can't find any info about how to troubleshoot that behavior. For ...
user avatar
0 votes
1 answer
25 views

How to inherit XDG_SESSION_TYPE in systemd units?

My current desktop environment: Plasma Wayland. Many GUI applications can't be launched from within Emacs daemon (started by e systemd unit) unless XDG_SESSION_TYPE is set to "wayland". It's ...
user avatar
0 votes
0 answers
28 views

Access to the display when loading the systemd service

I am writing a bootable service in C and D languages. There is a database of users with thin client settings. I access this database over the network during the download and get from there the data of ...
user avatar
2 votes
0 answers
28 views

What is entomb service?

On many GNU/Linux systems (Arch, Centos) I see the following entry in /etc/services file: entomb 775/tcp What is entomb? I searched the internet for information about it but there's very ...
user avatar
  • 511
0 votes
0 answers
9 views

systemd service: kill previously started processes before restart

My service starts a number of inotifywait monitors. The systemd restartstarts new processes but leaves the old processes running so that I have multiple monitors on the same targets. How do I do this ...
user avatar
0 votes
1 answer
14 views

See logs of a command inside a systemd service?

I have a systemd service that runs ngrok. [Unit] Description=Ngrok After=network.service [Service] type=simple User=ubuntu WorkingDirectory=/home/ubuntu ExecStart=/snap/bin/ngrok http 4000 --host-...
user avatar
0 votes
2 answers
35 views

Prevent wakeup from suspend via a service

I meant to avoid my laptop waking immediately after suspend. I managed to do so as shown here. The contents of the script disable_devices_from_wakeup.sh I am using is #!/bin/bash declare -a devices=(...
user avatar
0 votes
0 answers
20 views

User service is not running after the rebooting

I have created a service xvfb and copied it under directory /usr/lib/systemd/system/ also I have created another xvfb.serive which internally start/stop my xvfb service. I want my service to start ...
user avatar
0 votes
0 answers
83 views

rootless docker systemctl daemon errors

I am trying to run docker on rootless user, but I can't seem to start daemon in any way using systemctl. I use Debian 11. To log into the user with root privileges I use key pair and any login to ...
user avatar
0 votes
1 answer
60 views

automatically activate service after RPM was installed

OS - Red Hat Enterprise Linux 8 I've created a .spec file to build and package my application. My rpm also includes my_app.service file for systemd to start it. However, by default one has to enable ...
user avatar
  • 1,409
0 votes
0 answers
121 views

Systemd hanging a whole target service group

I have a script to run at startup after drive mount (more or less basic.target) and before all other services (more or less multi-user.target). The other services must wait until my script end ...
user avatar
  • 1
0 votes
0 answers
15 views

How do I disable csd-wacom?

I would also like to know how to permanently disable csd-wacom since I don't have a Wacom tablet and csd-wacom is wasting resources and the question regarding how to disable it wasn't answered.
user avatar
-3 votes
1 answer
78 views

If Microsoft is pushing systemd so hard, then why do I restart my services in Ubuntu 18.04 LTS WSL using System V? [closed]

I had to restart my apache2 server in WSL yesterday, and I was surprised that I couldn't use systemctl like I do on Ubuntu; instead having to revert to sudo /etc/init.d/apache2 restart. But I thought ...
user avatar
  • 4,049
0 votes
0 answers
14 views

systemd unit fails to start when running journalctl system commands

System: RHEL 8.4 systemd version 239 Problem: I need to redirect journalctl system output as a user. My user is a system user (uid < 1000), and must be a system user. I also must use systemd --...
user avatar
  • 285
1 vote
0 answers
33 views

How to start the service in Linux

I wrote such a tutorial script to run the service mysleep The service just on the command start starts sleep 10d and on the command stop kills the process on its pid #!/bin/bash case "$1" ...
user avatar
0 votes
0 answers
21 views

Installed services

Is there a way to list all services on a VM that were added manually to the system ? I'd like to easily generate a list of the services installed by users. I thought of creating list A by listing all ...
user avatar
  • 1
0 votes
0 answers
18 views

A Linux service that always kills the last- but not the first

I'm running Armbian (Debian) and am using this openvfd driver to control a 7-segment LCD on the front of my device. I made some pretty significant edits to the code in order to allow writing custom ...
user avatar
1 vote
1 answer
53 views

systemctl / journal distinguish if service was restarted, not stopped and started

Is there a way to check if a service was restarted? When performing a systemctl restart myunit.service or systemctl --user restart myunit.service, the logs only show that my unit was stopped and then ...
user avatar
  • 285
0 votes
1 answer
22 views

Issues creating boot and shutdown systemd daemon

I'm trying to create a config file for my unit but when I start the daemon after enabling and shutdown the computer it doesnt works. The script only executes the ExecStart line after network.target on ...
user avatar
  • 48
0 votes
0 answers
70 views

what is icl-twobase1 service

On one of my EC2 instance (RHEL) on AWS, there is a service called icl-twobase1 running on port 25000. Does anyone know what that service is?
user avatar
  • 101
2 votes
3 answers
403 views

After=multi-user.target and others not working in a systemd service

I have a service that works that only works if it runs after the dhcpcd.service because it performs a github pull, and it can't resolve the host unless DHCP is up. network.target is finished long ...
user avatar
0 votes
1 answer
29 views

Open Suse only root can use service

Noob Question I am using OpenSuse Tumbleweed in WSL Windows 11. I am unable to use service to start or check the status of applications as a regular user. Only Root. I get the following error: service:...
user avatar
0 votes
1 answer
9 views

cups-browsed service, thunderbird and others apps cannot start due to "libgio-2.0.so.0"

cups-browsed service, thunderbird and others apps cannot start due to "libgio-2.0.so.0" what to do? elias@eliasc:~/Downloads/_LINUX_PKGS$ thunderbird XPCOMGlueLoad error for file /usr/lib/...
user avatar
0 votes
0 answers
34 views

creating systemd from a script [duplicate]

I have a script that starts|stops a daemon, which listens on a port commands to start|stop daemon are simple /usr/local/custom-process/scripts.d/daemon.sh start /usr/local/custom-process/scripts.d/...
user avatar
  • 1,631
1 vote
1 answer
45 views

How to run a service dependency only on boot?

I have a long-running systemd service, let's call it db.service. It is enabled to start on system boot, but can also be restarted manually. I also have a oneshot service, les's call it check.service, ...
user avatar
  • 113
0 votes
0 answers
78 views

systemd-update-utmp.service fails to load on boot up

systemd-update-utmp.service fails to load on boot up. It says it's because there's no space on the disk. Here's the error message: root@arm-64:/home/user# systemctl status systemd-update-utmp.service ...
user avatar
4 votes
1 answer
76 views

firewalld - where are the numeric firewall port numbers mapped to the service name?

# firewall-cmd --permanent --add-service=nfs # filewall-cmd --permanent --add-service=rpc-bind in RHEL/CentOS 7.9 if I do the above, what numeric port numbers are opened in the firewall? Where is the ...
user avatar
  • 4,121
2 votes
1 answer
45 views

How to prevent restarting of systemd services

I am trying to troubleshoot wpa_supplicant on a smaller tablet. The tablet is using systemd to run a wpa_supplicant.service which has an entry ExecStart=/usr/sbin/wpa_supplicant -u I would like to ...
user avatar
  • 225
1 vote
0 answers
23 views

Use an environment variable in SyslogIdentifier in service file

I'm working on a system running RHEL 7.9 and we're trying to use an environment variable to alter the SyslogIdentifier for the service. We've tried a number of options, but they all output exactly ...
user avatar
0 votes
0 answers
13 views

how to establish the deployment order of several ear in a jboss EAP 6 and 7 server

I would like to know how to establish the deployment order of several ear in a jboss EAP 6 and 7 (RHEL 7) server, it turns out that in our jboss servers, we commonly have 7 or 8, even more ...
user avatar
2 votes
0 answers
101 views

systemd stops writing to StandardOutput file

I have a simple systemd service on Ubuntu 20.04 where I specified the following: StandardOutput=file:/var/log/appname/console.log When I first started the service, the file got created and I saw the ...
user avatar
  • 367
0 votes
0 answers
33 views

Tried setting up a script on opensuse Tumbleweed

I simply followed a yt video on making a systemd script/service. Made the .sh file (gamemode-start.sh) which just contains "gamemoded -r" (with no quotas) so that gamemode autostarts on ...
user avatar
0 votes
1 answer
29 views

Systemd target units with same names but different contents

I am using Linux Mint 20.3 Cinnamon $ systemctl --user get-default default.target $ ls -al /lib/systemd/system/default.target lrwxrwxrwx 1 root 16 Jan 10 05:56 /lib/systemd/system/default.target -> ...
user avatar
  • 1,362
0 votes
1 answer
64 views

Trouble with keeping process launched by systemd service alive

I am trying to to get my first systemd service working as desired. Here is what I have: gateway-watchdog.service: # A systemd service for the Gateway Watchdog [Unit] Description=gateway-watchdog: ...
user avatar
0 votes
1 answer
56 views

Make init.d service wait for mount via systemd-logic

I have a systemd-based distribution (debian 10) with a legacy init.d-service (backuppc). As the backup is stored on an external drive, I'd like to ensure that the backup service does not run before ...
user avatar
  • 10.6k
0 votes
0 answers
42 views

Systemctl start not working but service start is working

I am in front of a strange thing on my Debian 10 system. I have custom services but when I try to start it with systemctl start XXXX, the console will never exit and the service is not started. When i ...
user avatar
0 votes
0 answers
16 views

Run multiple apps with single systemd service

I'm trying to run 2 different apps with a single service. The service is as below: [Unit] Description=some service [Service] Type=oneshot TimeoutStartSec=0 ExecStart=/location1/app1 ExecStart=/...
user avatar
1 vote
0 answers
44 views

How to avoid audio recording fade in?

Audios recorded from the microphone start with a pop and a fade in. I tried 2 mics from two hardware inputs. I found this solution that describes my problem but Fedora 35 has no default.pa file: In ...
user avatar
  • 306
0 votes
2 answers
460 views

cron.service file not found

My backup script works fine when executed manually; but nothing runs from crontab. I am running Fedora 35 Workstation. The crontab editor works: $ crontab -e The cron daemon is not running. Each of ...
user avatar
  • 109
0 votes
0 answers
24 views

Find out services allocating bus

When starting a service via systemctl, it fails and exits with Two services allocated for the same bus name XXX. How do I figure out which second service is using this bus?
user avatar
  • 101
0 votes
0 answers
636 views

samba access denied: "session closed for user nobody"

I am seeking to add a Samba share to a host running Linux Mint. Desired features of the share are discoverability of the host and share through broadcast, accessibility of files only by users with ...
user avatar
  • 162
0 votes
1 answer
32 views

How to delete/disfunction Restart option from LM20 shutdown menu?

I was able to look up only these files, they may or may not be related to my task: /usr/lib/systemd/system/plymouth-reboot.service /usr/lib/systemd/system/reboot.target /usr/lib/systemd/system/reboot....
user avatar
1 vote
1 answer
164 views

Systemd log to file prepend timestamp

I have a systemd service that logs to files: [Unit] Description=... [Service] ExecStart=/path/to/my_service StandardOutput=append:/var/log/my_service/log.log StandardError=append:/var/log/my_service/...
user avatar
0 votes
1 answer
120 views

Clearing an occupied /dev/tty to start a service

I want to run a service with the output on a certain tty on a Ubuntu server, before any login prompt. I've already successfully made a service that runs htop on tty3: [Unit] Description=htop on tty3 [...
user avatar
0 votes
0 answers
34 views

SystemD service restart after crash AND later if failed to restart the first time

Is there a way to restart a service straight away after crashing and also later (after configured time has passed) if it fails to be restarted the first time? Something similar to a combination of ...
user avatar
  • 116
0 votes
1 answer
27 views

Unable stop service using systemd the process created by using command

I managed to start the service in 2 different ways Using normal command root@ip-172-31-35-92:/#/usr/bin/mongod --config /etc/mongod_27018.conf & Using systemd service. service mongod_27018 ...
user avatar
0 votes
1 answer
21 views

OpenSUSE firewall services map

How are services mapped to ports in firewalld on openSUSE? I would have expected /etc/services. I saw this was recently moved to /usr/etc/services, but that doesn't seem to be the place either. ...
user avatar
0 votes
2 answers
359 views

How to launch a .service file Using Systemd -Dbus interface?

I need to call a service file using Systemd -D bus Interface. I think using the g_dbus_connection_call_sync() method we can communicate on D-Bus I need g_dbus_connection_call_sync() to call method ...
user avatar
0 votes
1 answer
57 views

Debian Service isn't starting file correctly on startup

I have a file called botstart.service in /etc/systemd/system with this content: [Unit] Description=Start all discord bots (AntiSpam, AutoChat, Nyoko, Helper) and the lavalink server. [Service] ...
user avatar
0 votes
1 answer
102 views

Python script not launching properly on reboot/startup Raspberry Pi

For context, I am using Raspberry Pi model 3B+. Currently I am trying to run a python script at the Pi's boot up. But I am struggling with getting the program to launch properly. When I use the ...
user avatar
  • 1

1
2 3 4 5
19