Questions tagged [services]

Daemons are programs that constantly run in the background. They usually service requests. If you are asking about online services, please use a different tag.

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Launch Firefox as a system service on bootup

System -> Ubuntu 22.04 LTS Firefox -> Mozilla Firefox 110.0 (Not using snap firefox) Use Case -> Launch firefox as a system service on system bootup. Created a service as follows -> [Unit] ...
shaggy's user avatar
  • 45
1 vote
1 answer
1k views

Cannot use systemctl as a user after a "sudo su - media" : Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined

I'm trying to create a service as a user but it does not work : admin $ sudo su - media $ systemctl --user edit fmgr-copro.service --full --force Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS ...
SebMa's user avatar
  • 2,291
0 votes
0 answers
129 views

Make Ubuntu wait for service to stop before rebooting

I have a mini pc running Kubernetes (k3s) with homeassistant. The issue leading to the question When I do a sudo reboot (forgetting that the home assistant is running) the sqlite database becomes ...
JoSSte's user avatar
  • 188
0 votes
1 answer
594 views

systemd service fails to start script in home directory

I would like to start a python script (i.e. a Flask server) at boot of Ubuntu 22.04. I have created a file /lib/systemd/system/myService.service with following content: [Unit] Description=The service ...
BlackHawk's user avatar
  • 121
0 votes
0 answers
430 views

Error in Ubuntu Server for service bind9

Error in service bind9 when I'm starting root@ServerRedes:~# service binder status named.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/named.service; enabled; vendor ...
test.netwokring's user avatar
8 votes
3 answers
8k views

How to run a docker-compose as a systemd service?

I found this question, but that one uses cron - I'd like to use a systemd service instead. My docker-compose.yml is in /home/me, and I run it with sudo docker compose up (and just keep it running in ...
cocomac's user avatar
  • 3,376
0 votes
0 answers
103 views

My Postgres always shutdown in a while (around 1 hour)

I have a problem about Postgres and Ubuntu VPS. My service always shutdown without no reason. Below is Postgres's log. Could anyone take a look at this situation please? (Click image to enlarge)
Tim Dang's user avatar
0 votes
1 answer
392 views

How to connect to pulseaudio server from service

I'm developing a simple app to duck audio automatically using the pulsectl-asyncio library. I've developed the application in Python with a virtual environment, and when I run the script from the ...
MemoNick's user avatar
  • 119
0 votes
1 answer
367 views

Systemctl cannot start service which uses ttyACM0 port after reboot

I need to start my own service (SignalR client) written in C# (.NET6) after ttyACM0 port is available. This service should be started after other service (SignalR server). The server service starts ...
Chebona's user avatar
-1 votes
1 answer
729 views

Problem ubuntu-advantage-desktop-daemon.service is a disabled or a static unit not running, not starting it

My O.S. is ubuntu 22.04. After punching in terminal, the following message is being displayed: ubuntu-advantage-desktop-daemon.service is a disabled or a static unit not running, not starting it. How ...
mfskanpur's user avatar
1 vote
0 answers
1k views

Dummy Output Ubuntu 22.10 + Intel Comet Lake PCH-LP cAVS + i5 10210U

Well guys, im new into Ubuntu, and i have this problem,i'm totally sure that my sound card is not broken, because at the beggining when i was with 22.04 LTS, it worked, until i paired a bluetooth ...
ulises chustek's user avatar
0 votes
1 answer
1k views

Strange Samba Install Error

I'm getting this out of the command line when installing Samba on Ubuntu Server: Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about ...
Jin's user avatar
  • 1
0 votes
0 answers
126 views

restart service daily at 4 am

I have a small minecraft server running in ubuntu 22.04.1. Currently, ubuntu has the following service: [Unit] Description=Minecraft server After=network.target [Service] User=drgadmin ...
julian bechtold's user avatar
0 votes
1 answer
359 views

Custom Firefox service not starting after reboot

I am currently building a kiosk for a local sports club and I am running into a few issues here and there. Since multiple pages have to be loaded at the beginning, I opted to use Firefox which will ...
rqq's user avatar
  • 11
0 votes
0 answers
234 views

Ubuntu service file not finding module from environment

My Linux service runs a script that produces an error that a module is not found. However, when I run the script from the terminal with the python environment activated the script works fine. I run ...
costa rica's user avatar
3 votes
1 answer
707 views

Passing "flag" Arguments to Systemd Services

I have a Systemd service that calls a script. That script takes it's own arguments, some of which are named arguments. I currently have the following service: [Unit] Description=My Service ...
Ben Turner's user avatar
0 votes
1 answer
6k views

Unable to start php-fpm service after boot on Ubuntu 22.04

I am running a small Ubuntu Server within my home network with various web services like vaultwarden, nextcloud, seeddms, etc. on it using a nginx web server. I had multiple PHP versions installed, ...
Ricco Skombar's user avatar
1 vote
1 answer
803 views

Unit user-.slice failed to load properly: Invalid argument

I have been trying to set up resource controls on 22.04.1 login node so users can't degrade the system by running anything too intensive. I looked at using cgroups but apparently since it's a systemd ...
SHawarden's user avatar
  • 865
2 votes
1 answer
291 views

Two startup daemon processes working together in wsl2?

We normally know that WSL2 normally do not have systemd it generally starts on init daemon! But recently from year 2022 we can also use systemd by enabling the sysboot to systemd in wsl.config. So I ...
Rahat Bin Taleb's user avatar
1 vote
1 answer
256 views

systemd service won't boot at start

I'm running a service on a EC2 instance that should boot at start and whenever the script associated fails. So I wrote the service like this: [Unit] Description=Test [Service] User=ubuntu Type=simple ...
Voley Betz's user avatar
1 vote
0 answers
4k views

unattended-upgrades.service using an outdated library in Ubuntu 22.04

Whenever I execute an apt-get upgrade, I am confronted with a popup telling me that two of my daemons are using outdated libraries, and I am asked whether or not I wish to restart those services. One ...
Phil Freihofner's user avatar
1 vote
0 answers
396 views

How to disable cron service delay on startup?

I'm trying to add the execution of a shell script on server startup. I do it using cron, so I configured it with 'crontab -e' command. It looks so: @reboot /home/user/run.sh Then I enabled a service ...
hovtianytsia's user avatar
-1 votes
1 answer
84 views

Is screen capable of displaying a root process?

I am trying to run XMRig at boot on Ubuntu Server 22.04.1 and my basic knowledge is not enough to solve this issue. I am following this procedure which uses a systemd service to launch a shell script ...
Powerkey's user avatar
0 votes
1 answer
337 views

OneDrive service keeps stopping on Ubuntu on Raspberry Pi

I have installed a OneDrive client onedrive v2.4.22-1+np1 (https://github.com/abraunegg/onedrive) on an Ubuntu server (Ubuntu 22.04.1) which is running on a Raspberry Pi 4. After installation I have ...
waldrabe's user avatar
1 vote
1 answer
328 views

org.ayatana.bamf was not provided by any .service files

I get this error in the openrazer snake application splash screen as an unknown error. I assume because it's given such prominence it's important but I can't find any information anywhere on how to ...
nobody special's user avatar
1 vote
1 answer
139 views

Kubuntu 20 system performance problems

working in Kubuntu 20 I periodically have big problems with performance : my system practically stops and I have to waite for some period to resume my work: More details about my Laptop and OS : ...
mstdmstd's user avatar
  • 173
0 votes
0 answers
84 views

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down [duplicate]

I have Windows 11 with Ubuntu installed with WSL2. I'm not able to configure Systemd in order to use snap installations. I have configured the file /etc/wsl.conf configured with the following entries (...
José Ramos's user avatar
1 vote
0 answers
96 views

Kernel configuration settings not applied by systemd script (making the recommandation of powertop permanent)

Problem statement I try to make the tuning recommandations provided by PowerTop permanent by writing kernel settings in a script executed in a oneshot systemd service. Scripts contains line such as [.....
Octave's user avatar
  • 111
2 votes
0 answers
3k views

How to start services on a system running without systemd on termux?

Xubuntu 20.04 The system starts without systemd, so all commands using systemctl end with the error: #systemctl status snapd.service System has not been booted with sysmtemd as init system (PID 1). ...
BeautifulKostya's user avatar
1 vote
1 answer
912 views

SSH service failing on Reboot [closed]

I am working on Rock 5B which have Ubuntu 20.04 LTS server OS (Download from radxa official page), I am facing a issue of ssh service, Whenever I reboot the device ssh service is getting failed. ...
Vignesh Ganesan's user avatar
0 votes
0 answers
415 views

What makes LXD autostart?

I can see that snap creates and enables a snap.lxd.activate.service service, that runs lxd activateifneeded. But I don't see any signs of it in snapcraft.yml. snap.lxd.activate.service is enabled and ...
x-yuri's user avatar
  • 581
0 votes
0 answers
3k views

I do not start rabbitmq on ubuntu 20.04

I installed rabbitmq on ubuntu 20.04 but when I want start it i get the following result Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl ...
samira's user avatar
  • 1
0 votes
1 answer
148 views

How to add defined environment variable to a .service file

I'm installing Tomcat and one of the last steps requires to define a .service file for it. In that file I must define a line with Environment="JAVA_HOME=path_to_java" I already have a ...
Xandor19's user avatar
1 vote
1 answer
987 views

Trying to pair with Xbox Wireless Controller results in extremely rapid connection/disconnection

After visiting literally dozens of other forums and threads about Bluetooth issues, I have still been unable to pair my Xbox wireless controller with my computer. I've tried the following (not an ...
Patrick O'Brien's user avatar
2 votes
1 answer
3k views

ModemManager can't start as a service, but manual start works

For a while now, I haven't been able to start the ModemManager service. ➜ ~ systemctl status ModemManager.service × ModemManager.service - Modem Manager Loaded: loaded (/lib/systemd/system/...
Tschösi's user avatar
  • 172
1 vote
1 answer
1k views

apt install fails because of avahi-daemon.service (20.04)

I am trying to install a program with apt install (or apt-get install) but it always fails due to an error with the avahi-daemon. See below (ignore the program wine is already installed. This happens ...
Brian C's user avatar
  • 167
0 votes
0 answers
501 views

Running GUI application as system service

I have a GUI application which I somehow want to be running 24/7 with a desktop user, so that the rest of users are able to access that desktop somehow (using a vino server, or any other kind of ...
Roman Rdgz's user avatar
2 votes
1 answer
2k views

Why did Samba stop working after upgrading from Ubuntu 20.04 to 22.04?

I've recently upgraded my home server from Ubuntu 20.04 to 22.04 and it's been pretty rough. Today when attempting to connect to the file shares from Windows I got a connection refused message. I ...
jla's user avatar
  • 221
1 vote
0 answers
1k views

Start ngrok via systemctl services on Ubuntu Server

I am running a Ubuntu Server 22.04.1 and trying to run ngrok at startup using systemd, to create a ssh tunnel. Current state: BWS_ngrok.service under /etc/systemd/system/BWS_ngrok.service ngrok.yml ...
Jannis's user avatar
  • 11
1 vote
2 answers
3k views

Job for wsdd.service failed because of unavailable resources or another system error

While following the procedure outlined here, when I ran the command sudo systemctl start wsdd the response was Job for wsdd.service failed because of unavailable resources or another system error. See ...
hoatzin's user avatar
  • 568
2 votes
1 answer
7k views

Running Elasticsearch on Ubuntu on WSL: "System has not been booted with systemd as init system (PID 1). Can't operate."

I'm using WSL on Windows 11 (with Ubuntu 22.04 LTS) and trying to use Elasticsearch on it. When I run sudo systemctl start elasticsearch.service, I get the error: System has not been booted with ...
Zain's user avatar
  • 23
2 votes
3 answers
31k views

How to fix the "Unit docker.service could not be found." error?

How do I simply pull and run hello-world? nicholas@mordor:~$ nicholas@mordor:~$ nicholas@mordor:~$ snap list docker Name Version Rev Tracking Publisher Notes docker 20.10.14 1779 ...
Nicholas Saunders's user avatar
0 votes
1 answer
464 views

Enabled custom systemd service is not started on boot

My goal is to create a file after every boot. Code below is a simplified version. This is the systemd service unit file in /lib/systemd/system/createfile.service: [Unit] Description=Creates a file [...
rapstacke's user avatar
  • 325
1 vote
1 answer
3k views

How do I run multiple nginx instances on the same server?

How do I run multiple nginx instances on the same server? This is useful when you need to stop a specific instance while leaving other instances running. What should /usr/lib/systemd/system/nginx-...
geek175's user avatar
  • 11
0 votes
1 answer
209 views

Unable to run a script at launch in Ubuntu

I just want to execute a script when the system starts, and after many tries and following multiple tutorials and documentation, I am unable to do it. Could you spot what am I doing wrong? Run Ubuntu ...
vtscop's user avatar
  • 3
0 votes
1 answer
2k views

Can't run x11vnc as a service

I am trying to configure an x11vnc server on Ubuntu 20.04. When I start it from the terminal with the command: x11vnc -noxdamage -display :0 -rfbport 5900 -rfbauth /home/km/.vnc/passwd -forever -loop ...
bLAZ's user avatar
  • 101
1 vote
0 answers
388 views

How do I run daphne (or any python application) from a no-login user?

Bottom Line Up Front For security, I want a "your only purpose in life is to serve butter" user with only enough privileges to execute Daphne and my Django app as a systemd service. How do I ...
claypooj's user avatar
  • 161
5 votes
1 answer
3k views

Error message enabling fstrim.service

I have been running Ubuntu 20.04 desktop since last February. Today I issued sudo systemctl enable fstrim.service and I got this message: The unit files have no installation config (WantedBy=, ...
RTC222's user avatar
  • 237
0 votes
0 answers
48 views

Lost a .service file

I get an error message that a .service file is missing. I have no idea what this file is or how it was supposed to be put there.
Thomas Bullock's user avatar
0 votes
0 answers
211 views

How to run Blender as a Service?

I have a python script that continually calls blender to do some rendering with various blend files os.system('blender -b testFile.blend --python-text render -- [args]') This call will open blender ...
Harry McKenzie's user avatar

1
2
3 4 5
25