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
0
votes
1
answer
2k
views
Pmie_logger and pmlogger daily both fail to start
I've tried enabling and restarting both services but they continually fail, even on reboot.
The job identifier is 110800.
Oct 12 19:14:36 [server] pcp[2555877]: pmie_daily failed - see /var/log/pcp/...
1
vote
0
answers
405
views
Fail to execute command on startup
I want to run a simple command after my ubuntu starts up and network services are established (it should do so no matter wheater I'm logged in or not)
If I run the command manually, it start's up the ...
1
vote
0
answers
120
views
what does the power management applet do on a desktop?
ok, I understand what the power management daemon does on a laptop, conserving battery power by scaling down the cpu, and dimming the screen. On a desktop however, is the power management daemon ...
0
votes
0
answers
127
views
Ubuntu: reading local user env variable in service
I have a Linux service running on my ubuntu machine. in this machine, I need to read proxy setting environment variables ( like https_proxy, http_proxy, no_proxy, etc) values for the currently logged-...
0
votes
0
answers
101
views
Service takes a long time to shutdown
I recently started practicing kubernetes on my local machine which is ubuntu 21.04L in a virtual machine (VMWare). Whenever I shutdown it is stuck for few minutes for containerd-shim with the ...
38
votes
9
answers
36k
views
apt-get upgrade auto restart services
I have an unattended script for installing servers. At the beginning of the script there is a sudo apt-get dist-upgrade --yes.
The dist upgrade has a nasty user input screen at its end asking to ...
1
vote
0
answers
965
views
Unable to shutdown redis-server even after uninstall
After uninstalling:
> ps aux | grep redis-server
root 147242 0.7 0.0 52968 7824 ? Ssl 16:58 0:00 /snap/redis/137/usr/bin/redis-server *:6379
stavalfi 147321 0.0 0.0 17672 ...
0
votes
1
answer
222
views
Start service after all http handling services have started
I have been puzzling over this one for a while now and I have managed to refine my issue to one problem. I have a service which is supposed to run a shell script to start daemon processes (using nohup)...
0
votes
0
answers
158
views
Published .Net Core website not working with Systemd
I'm deploying a ASP .Net core app to my webserver. When I run the systemd service it binds to port 5000 and I get a nginx 502 error. When I run the service manually using "dotnet Activecalls.dll&...
1
vote
0
answers
284
views
Use Docker on a systemd disabled VM
I am provided by a VM running Ubuntu 18.04.5 LTS which has systemd disabled.
I have root access on it.
I am trying to run docker on it which is installed but I get error
Cannot connect to the Docker ...
0
votes
0
answers
45
views
How do I stop Ubuntu 20.04 from asking me my password everytime I run the TOR service?
I'm trying to run a script that uses TOR which restarts every time it finishes, but Ubuntu keeps asking me for my password.
Sorry, I'm very new to all of this. Thanks guys
Screenshot
2
votes
2
answers
3k
views
/usr/sbin/mysqld: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory
p2@P2:~$sudo systemctl restart mariadb
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe"...
2
votes
1
answer
3k
views
Ubuntu Server 18.04.5 upgrade to 20.04 fails
My server is driving me nuts, I'm trying to change the current hdd to a new ssd and after that setting up Raid and a valid backup system. But that's other question...
I already made a copy of the ...
1
vote
1
answer
8k
views
Running systemctl in Python script
I'm trying to get the status of a few systemd services in Python, but I keep getting the error FileNotFoundError: [Errno 2] No such file or directory: 'systemctl show -p ActiveState --value abc'
I'm ...
-1
votes
1
answer
3k
views
Tried unmasking systemd-timesyncd and got deleted
So lately I was trying to sync my system time with an NTP time server using timedatectl command but I got this error:
Failed to set ntp : NTP is not supported
I searched the web and i figured out ...
0
votes
1
answer
538
views
Why am I getting "Failed to start redpanda.service: Unit redpanda.service not found." while trying to install Redpanda?
I am getting below error while trying to install Redpanda
$ curl -1sLf 'https://packages.vectorized.io/nzc4ZYQK3WRGd9sy/redpanda/cfg/setup/bash.deb.sh' | sudo -E bash && sudo apt install ...
21
votes
2
answers
28k
views
How to start a specific service when Ubuntu is started on WSL2
I need to run sudo service postgresql start every time when I start Ubuntu on WSL2.
How can I make the service start automatically when I start Ubuntu?
WSL doesn't use systemd, so sudo systemctl ...
1
vote
1
answer
672
views
How to use transmission-show and other command line tools to find the status of torrents?
In going through the man pages for transmission I'm not seeing how to find the status of current downloads initiated through the GUI:
nicholas@gondor:~$
nicholas@gondor:~$ transmission-show --...
1
vote
2
answers
653
views
How is transmission monitored from the console?
Normally I add magnet links from firefox to transmission via the GUI, but also want it to continue the downloads even when the GUI isn't running.
I've also installed:
transmission-cli
transmission-...
0
votes
0
answers
17
views
tracing services to packages [duplicate]
Hello I want to programmatically trace a service back to its software package. Is there a command that would allow me to determine which package(s) support a service?
Thanks!
3
votes
2
answers
624
views
How to disable redshift (service) on startup
I have redshift installed on a XUbuntu 21.04. Apparently it's a service
systemd[4048]: redshift.service: Failed with result 'exit-code'
and it runs at startup.
I'd like to disable redshift on startup, ...
2
votes
1
answer
1k
views
How to fetch email in the background?
I use GNOME Evolution as my email and calendar client. It only sends email notifications and event reminders while Evolution is running. Is there a way to make the notifications component run in the ...
1
vote
2
answers
6k
views
How to perform a port-forward on microk8s and send that process to the background?
I am trying to run this command:
microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443
But the output is the following:
└─[$] <> microk8s kubectl port-forward -n ...
0
votes
1
answer
1k
views
how to enable start/stop/restart for a newly added service in Ubuntu
I have created a service which does some database connection and does some query.
I want to know if I want to enable "service xyzservice start" or "service xyzservice stop" or ...
4
votes
2
answers
3k
views
Proper way to disable Evolution services when it's purged already
Though I have gone through quite a few threads on AskUbuntu, I couldn't find a proper way to disable these Evolution services, especially when Evolution is purged from the system already, in Ubuntu ...
2
votes
0
answers
3k
views
List services start with specific name
I have multiple services which start with a specific name. How can I list them in Linux.
For example some thing like that, sudo systemctl --name='*NAME.'
The main reason is that I am planning to write ...
1
vote
0
answers
596
views
What is dev-fuse.device and why does it extend boot time?
Trying to see if I could speed up my system boot I ran systemd-analyze plot > bootplot.svg . Everything seems normal except for dev-fuse.device that starts at 7.7 sec and then shows as activating ...
0
votes
0
answers
1k
views
How to disable a service only for the next boot?
According to https://askubuntu.com/a/19324
systemctl disable SERVICE Turns the service off on the next reboot or on the next stop event. It persists after reboot.
Is it possible to disable a service ...
0
votes
0
answers
278
views
MySQL Cannot Connect Using Client
After removing, purging and reinstalling MySQL due to a mis-install which got it stuck in a state where it would neither uninstall nor install, it is no longer accessible from MySQL clients but runs ...
0
votes
2
answers
3k
views
bitcoind.service: Can't open PID file /run/bitcoind/bitcoind.pid (yet?) after start: Operation not permitted
On Ubuntu 20.04 LTS, I made a service / systemd unit for bitcoind, but when I start it, I get this error:
Can't open PID file /run/bitcoind/bitcoind.pid (yet?) after start: Operation not permitted
...
0
votes
1
answer
2k
views
How to create a custom systemctl command?
I created the
mycommand.target
[Unit]
Description=Mycom
Documentation=man:systemd.special(7)
DefaultDependencies=no
Requires=systemd-mycom.service
After=systemd-mycom.service
StopWhenUnneeded=yes
...
0
votes
0
answers
392
views
"sfcb" service status is shown as "active(exited)"
I installed sfcb on Ubuntu 18.04 system. It got installed without any errors. I can start and stop the service without any errors.
However When I check status of the sfcb service, as given below, it ...
0
votes
1
answer
710
views
nginx: unrecognized service after upgrading Nginx on Ubuntu 18.04
I removed the default Nginx package from my server, and compiled it from source here. There is a script on the server that checks Nginx, and reports any problem:
if ($result->num_rows > 0) {
...
1
vote
0
answers
27
views
How do you properly fix/prevent when Systemd Units fail when binding to none local IP host/port upon system startup?
Say you have a fresh and modern Ubuntu system (say 20.04 LTS Server) installed on real hardware, and you need to deploy one or more network bound services, such as:
Nginx
MySQL
PostgreSQL
In my ...
0
votes
0
answers
65
views
Make Systemd attempt to restart once
I have an issue where every time I boot The RF Kill Switch service fails. I have looked around for a solution to this problem, but right now the solution is pretty much just deal with it. So to fix ...
-3
votes
1
answer
924
views
How to mine Dogecoin on Ubuntu? [closed]
I have a question for the community. What is your best advice for mining dogecoin on Ubuntu? I have searched on youtube and found this video. Link below. What is your advice for mining!
Link: https://...
1
vote
0
answers
45
views
How to set two services as alternative to each other?
I'm using unbound instead of the normal resolver on a development server that I have
unfortunately - it crashes many times and service do not start
Ubuntu has it's own resolver as a service systemd-...
4
votes
1
answer
31k
views
Failed to start systemd-resolved.service . systemd-resolved.service: Failed with result 'resources'. [1]: Failed to start Network Name Resolution
Main Issue is:
# systemctl status systemd-resolved.service
systemd-resolved.service -
Network Name Resolution Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: ...
0
votes
1
answer
125
views
NetworkManager is supossed to create a file everytime it connects to a wireless connection?
Here is the NetworkManager.conf
NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
My question is why the constant reconnection to ...
1
vote
0
answers
120
views
notification from c++ privilege daemon process to all users
I have a c++ privileged daemon process which is running as root. Want to send notification to all the desktop users programmatically using libnotify-dev package.How can it be done in cleaner way.
1
vote
2
answers
6k
views
systemd: how to make sure a service is started only after another service is up and running
On a Ubuntu 20.04.2 TLS server, I have a need to start a service after another one has fully started up. Specifically, the openvpn-server service creates a tun0 interface with the IP address 10.87.0.1 ...
4
votes
1
answer
32k
views
What is the difference betweem daemon-reload and reload?
daemon-reload - Load the unit configuration file of the running designated unit(s) to make
unit file configuration changes without stopping the service. Note that
this is different from the reload ...
0
votes
1
answer
2k
views
transmission-daemon configuration not working
I am trying to access transmission-daemon over HTTP. I have thus edited the rpc-whitelist option in /etc/transmission-daemon/settings.json. I did stop and restart the daemon while editing the config.
...
-1
votes
1
answer
672
views
unable to start the service in ubuntu - 16.04
I am tyring to start the service in ubuntu system inside /etc/systemd/system folder using this command:
systemctl start xxx.service
and I am getting the below error:
Any leads will be appreciated.
2
votes
1
answer
860
views
How to start service after resume from hibernate in Ubuntu 20.04?
Running Ubuntu 20.04.
In order to conserve battery life, I have a service that runs at boot that will cap the charge level to 80%, see service below (/etc/systemd/system/battery-charge-threshold....
1
vote
0
answers
32
views
Why the OS executes lz4?
I have no scheduled backups but I saw that lz4 was been executed, why is that? is it the same as the compressor software? I would like to understand what's going on and why it is been executed.
I'm ...
1
vote
0
answers
1k
views
Systemd user service not starting automatically
This has been asked many times in some form or another but none of the advice seems to have helped.
I want to run syndaemon after I login to the GUI, but I always have to start it manually
$ systemctl ...
0
votes
1
answer
633
views
Cannot stop screen started with systemctl start
On ubuntu server 20.04
I created a service definition for a Minecraft server within a screen session like that
[Unit]
Description=Minecraft Server
After=network.target
[Service]
User=minecraft
Nice=...
3
votes
2
answers
5k
views
How to disable onedrive service from autostarting
I installed "onedrive" from repo.
Works great but I don't want it to start automatically.
I'm tired of turning it off after each reboot - how to fix it?
I'm turning it off using systemctl --...
1
vote
1
answer
864
views
How to prevent (or at least automatically fix) `avahi-daemon: running [ubuntu_comp_hostname.local]` getting replaced with version with `-2` appended?
I have this problem where this:
#=> avahi-daemon: running [ubuntu_comp_hostname.local]
keeps getting itself replaced with a version with a -2 appended:
#=> avahi-daemon: running [...