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.
1,229
questions
2
votes
1
answer
21k
views
systemd service stuck on "deactivating"
Context
I have a systemd service. (I wrote the contrail-vrouter-dpdk.service file myself, included below.)
When I run sudo systemctl is-active contrail-vrouter-dpdk it says "deactivating".
When I ...
1
vote
0
answers
2k
views
Bluetooth Not Working on Kubuntu 19.04?
I'm experiencing issues with my laptop's internal bluetooth adapter. It lost the connection to my wireless mouse a few times, and then lost the mouse entirely.
When I used sudo service bluetooth ...
0
votes
1
answer
57
views
How to ensure a Pharo VM is running with systemd
I'm aiming to write an application in the Smalltalk fork Pharo and run this on an Ubuntu 18.04 server.
Pharo runs as a VM environment, using a Pharo image which runs the particular application. When ...
3
votes
1
answer
329
views
gdebi doesn't finish installing rstudio service
Cross posted from https://community.rstudio.com/t/ubuntu-rstudio-server-upgrade-service-not-found/27621
I had a working v1.1.463 installation of the Rstudio server on one of my Ubuntu 16.04.6 LTS ...
1
vote
1
answer
2k
views
Is service status command continuously monitoring the status?
When I ran
$ sudo service td-agent status
● td-agent.service - td-agent: Fluentd based data collector for Treasure Data
Loaded: loaded (/lib/systemd/system/td-agent.service; enabled; vendor ...
1
vote
1
answer
412
views
How to start a new program from service(daemon)?
I am writing a simple python script that run as daemon on Ubuntu. I've successfully installed and started it by writing a valid init.d startup script.
The question is, can I(and how can I) invoke ...
0
votes
0
answers
25
views
after adding bridge, services on host are no longer reacheable from other hosts
Before adding the bridge, different http services were reachable from other hosts.
After adding the bridge, only ssh is reachable from other hosts.
All other services are only reachable from the host ...
5
votes
1
answer
5k
views
How to remove stop-jobs?
I have installed Microsoft SQL-Server on my ubuntu machine.
Now it works fine, but every time I shutdown the machine, shutdown halts at
A stop job is running for microsoft sql server database ...
1
vote
1
answer
1k
views
How can I enable password-less sudo for the apache2 service?
Problem: I can't figure out how to enable using the apache2 service with password-less sudo. I can enable this for all commands for the user, but as this seems like a bad idea, I want to only enable ...
0
votes
1
answer
241
views
locate HAL Deamon on 18.10
I learned that hald is running all the time
HAL Daemon The Hardware Abstraction Layer (HAL) Daemon, or hald, is a user-space
program that runs at all times (that is, as a daemon) and provides ...
0
votes
0
answers
1k
views
Long boot time - is it safe to remove any of these services?
I am using Ubuntu 18.04 (with a custom Plymouth theme), and it takes close to 40 seconds to boot.
The output for systemd-analyze critical-chain graphical.target is
graphical.target @30.167s
└─...
1
vote
0
answers
345
views
Where does /etc/services come from?
I am thinking about the evolution of computer networks, and I am looking at /etc/services. There is a lot of information in there, a lot of ports I don't recognize.
I went to IANA Service Name and ...
1
vote
1
answer
108
views
Help troubleshooting a custom service
I want to setup my machine running Ubuntu Server to automatically run abcde when a disc is inserted.
/usr/local/bin/discready returns 0 when a disc is waiting to be read, returns non-zero otherwise
/...
4
votes
3
answers
5k
views
Force docker.service and docker.socket service to start after DNS is functioning on boot
Using 18.04 LTS. To make a long story short, I'm using FreeIPA for my login service on my linux machines, which means I need DNS resolution to authenticate to the IPA server. However, my docker.socket ...
2
votes
2
answers
4k
views
systemd-networkd.socket failed. Any ideas on what to do?
I have a problem with the Internet connection on my Server. I cannot use Filezilla or Webmin because my systemd-networkd.socket seems to be buggy or something. Can you help me? This is my output:
$ ...
1
vote
0
answers
379
views
Slow Boot time apt-daily-upgrade.service and apt-daily.service on Xubuntu 18.04 - ASUS K70IO laptop [duplicate]
I'm on Xubuntu 18.04, yet recently my
old laptop is very slow to boot
.
I've been hunting on the internet but I am unable to find any solution.
Please help,
ASUS K70IO
NVIDIA GeForce GT 120M
...
2
votes
1
answer
7k
views
systemd-timesyncd service is running in idle and doesn't synchronize time
I'm trying to synchronize time on my Intel NUC that is running Ubuntu 16.04.3 LTS with an NTP server that is running on a Windows PC.
I already checked that the NTP server is running correctly.
It ...
1
vote
1
answer
1k
views
systemd rqworker service
Systemd service, I want to create but it fails.
This is my service i have created.
[Unit]
Description=rqworker daemon
After=network.target
[Service]...
5
votes
1
answer
9k
views
Failed to get properties: No such interface '' in Ubuntu 16.04.3 LTS
I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x
with this content:
[Unit]
Description = tdk API daemon
[Service]
Type = simple
ExecStart ...
1
vote
1
answer
4k
views
nginx service is not starting (error = (code=exited, status=150))
i make a service and trying to start it ,but showing following error.my nginx is in active status.
error = (code=exited, status=150)
i had tried-reinstall the nignx and recreate the service.
...
2
votes
1
answer
9k
views
Failing to Start gunicorn.service using systemd
gunicorn.socket
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=sockets.target
gunicorn.service
[Unit]
Description=gunicorn daemon
...
0
votes
0
answers
135
views
Cannot disable NetworkManager-wait-online.service [duplicate]
I ran a command
sudo systemctl disable NetworkManager-wait-online.service
to disable the service, but after reboot I still see it in the output of systemd-analyze blame. Also status ...
2
votes
1
answer
4k
views
How to start emacs as service?
I'm trying to start the emacs daemon as a service but the service stops immediately upon startup.
in the Emacs page is this service script for systemd.
[Unit]
Description=Emacs text editor
...
0
votes
1
answer
360
views
How to touch a file at shutdown
I'm working on Ubuntu 16.04.3 and I need to create a file at the OS shutdown time.
After reading this link: https://unix.stackexchange.com/questions/39226/how-to-run-a-script-with-systemd-right-...
15
votes
3
answers
30k
views
How do I start and stop a systemctl service inside a bash script?
I am writing a bash script to perform a daily backup. This script will ultimately run automatically every morning (cron or systemd).
What I would like to accomplish is
Stop myservice
Perform backup ...
6
votes
1
answer
2k
views
Is there a way to use wild cards, redirection or other shell syntax with systemd units?
I have a systemd file to start a jar file. But I want to execute jar file as *.jar. Is there a way to do this?
[Unit]
Description=Test Background
[Service]
ExecStart=/usr/bin/java -jar /var/www/...
1
vote
1
answer
5k
views
How to fix system upgrade failure?
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed ...
0
votes
0
answers
883
views
Systemd cant find my 'start.sh' file?
so i am trying to get a minecraft server running as a service of systemd
my minecraft.service has this content:
[Unit]
Description=Minecraft Server
After=network.target
[Service]
WorkingDirectory=/...
41
votes
2
answers
54k
views
What is the use of systemd-journal-flush.service?
It slows my system boot time.
Can i disable it?
What will happen if i disable it on boot?
I am using Ubuntu version 18.04.
3
votes
1
answer
6k
views
Install Redis-Server on Ubuntu 16.04 LTS minimal
I have got a question and hope that somebody can help me. I own a vServer on a OpenVZ basis (I hate the kernel limitation) and can't install Redis.
What do I do:
Clean install Ubuntu 16.04. LTS ...
1
vote
1
answer
3k
views
How to setup a systemd service with root access?
Description
I am trying to make a systemd service file to run a python script to print something using thermal printer. escpos is the library I am using to access the control of thermal printer. ...
0
votes
1
answer
5k
views
ERROR: Couldn't connect to Docker daemon at http+docker://localhost + Segmentation Fault on docker daemon
I installed docker at my raspberry pi zero w running the latest raspbian with
curl -sSL https://get.docker.com | sh
and docker-compose with
sudo pip install docker-compose
When I run docker-...
3
votes
1
answer
13k
views
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
I have recently installed snmpd on my Ubuntu 16.04 VM. I was trying out few things and at some point I wanted to restart the application using
service snmpd restart
It did not work, giving the ...
43
votes
5
answers
198k
views
How to resolve "service start-limit-hit"
I am trying to run a Node.js API as a service, but am running into problems.
When running systemctl status servicename.service I get the following error:
servicename.service - [Service description] ...
3
votes
1
answer
28k
views
Start Service with Sudo
I am trying to run an Express API server with sudo permissions and have it automatically start on boot.
The API needs access to bcm2835 library, and I get the following when trying to run node server....
1
vote
1
answer
8k
views
Change PostgreSQL PGDATA variable with systemctl
I want to change the postgres' data directory to /home/postgres/data editing th postgresql.service instead of change the file /etc/postgresql/10/main/postgresql.conf.
So, I edited the service with
...
0
votes
1
answer
2k
views
How to permanently close a port?
I tried first adding a firewall rule
sudo ufw deny 22
$ sudo ufw status
To Action From
-- ------ ----
22 DENY ...
0
votes
0
answers
153
views
Ubuntu 18 Boot time is too long
My Ubuntu is taking too much boot time. Below is details
systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to ...
1
vote
0
answers
83
views
Dead references in services list
This question is a follow up to
Strange symbols in front of suspicious services
I have the following are dead service references om my AWS EC2 instance that is running as an email exchange for my ...
2
votes
2
answers
3k
views
lsyncd enabled service is not autostarting on PC restart - Active: inactive (dead)
I have super simplified the question by merging all the previous edits
lsyncd config file /etc/lsyncd/lsyncd.conf.lua
settings {
logfile = "/media/blueray/WDRed/_LsyncLog/lsyncd.log",
...
2
votes
1
answer
8k
views
How can I start a Qt GUI application on boot without a display connected?
I need to run a Qt GUI App on every system start and run it forever. I have created a system service for it.
Here is the service file content:
QtGUIAPP.service
[Unit]
Description=QtGUIAPP
[Service]...
0
votes
0
answers
479
views
cgroup manager daemon
Ubuntu 18.04.1.
Cgroups is not installed.
System jobs admin shows checked:
Cgroup manager daemon (cgmanager)
Cgroup manager daemon (cgproxy)
I can not uncheck these items.
How can I remove them?
to ...
0
votes
0
answers
70
views
How to make Oracle database services not start when I turn on my laptop
How do I get Oracle Database Express Edition 11g Release 2 services to not start at boot until I manually activate them? As it is, I have to run sudo service oracle-xe stop to stop the services every ...
0
votes
1
answer
2k
views
Why is apache2 failing to start the service?
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
root@rick-hp:/home/rick# systemctl status ...
0
votes
0
answers
39
views
Slow boot on SSD [duplicate]
I use Ubuntu 16.04 LTS with new SSD (4 months old), I had boot time like 5-8 seconds.
But some time ago my boot time increased to around 1 minute.
Can you help me please what is the problem and how ...
14
votes
4
answers
56k
views
How do I pass flags when starting a systemd service?
Note a similar question has been asked:
How to pass flags when starting 'service'?
But I read a while back that Linux switched from init.d to systemd, and since that Q&A are 6 years old ...
1
vote
1
answer
3k
views
avahi-daemon not setting up
For the last week or two I've been getting a package installation failure when I update Ubuntu 18.04. The following text appears in the Details window:
Setting up gnome-session-flashback (1:3.28.0-...
0
votes
1
answer
655
views
Ubuntu 16.04 - Using watch command to check file for output and stopping service
Is it possible to use the watch command to see if a file exists, and if it does then stop a service? Or possibly, as a workaround, check the content of the file and then stop a service?
I was looking ...
2
votes
1
answer
657
views
Why is VSZ so huge for the Gnome goa-daemon?
Trying to track down memory usage on my Ubuntu Bionic Beaver system. Why does ps report such a huge VSZ for Gnome's goa-daemon?
$ ps -eo pid,vsz,sz,rss,comm --sort -vsz| head
PID VSZ SZ ...
1
vote
1
answer
2k
views
How to run a unit-file as service for all users
I am trying to run ssh-agent by each ssh-session for each user (let's say I have userA with root privilege and userB withOut these privilage ).
To do so, I've created a unit-file based on this stack-...