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
-1
votes
0answers
15 views

Can we set up a server open to the world using a Virtual Machine?

I'm running an Arch based GNU/linux system, and because I'm on a lan without access to the Router, there is no way to make a self hosted site available to the web. In fact it would be nice to use it ...
0
votes
0answers
16 views

Is there a way to check when a status service change?

I would like to ask you if it is possible to run a script when changing the status of a service? In order to notify the user as soon as a service (like apache2 or another service) stop or crashes. Is ...
1
vote
0answers
16 views

Can systemd be used as an inetd/xinetd replacement without being an init?

Can systemd be configured (in runtime or compile time) to serve as a simple process supervisor, not as /sbin/init? If yes, are there tutorials and other documentation to follow to make customized non-...
0
votes
1answer
21 views

lighttpd won't start even with the right permissions

systemctl status lighttpd ● lighttpd.service - Lightning Fast Webserver With Light System Requirements Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled) ...
0
votes
1answer
14 views

Why unmasking service removes the file?

I have $ sudo systemctl unmask nmbd Removed /etc/systemd/system/nmbd.service. $ sudo systemctl enable nmbd nmbd.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/...
1
vote
1answer
29 views

systemd --user Failed to set up standard output: Permission denied

I've created this unit for systemd (v241) on the file /etc/systemd/user/foo.service [Unit] Description=Foo After=mysqld.service [Service] Type=simple Restart=always RestartSec=1 StandardOutput=append:...
0
votes
0answers
29 views

Systemd Service does not stop Before=suspend.target

I am having troubles executing a systemd service just before state suspend.target but it does not work. Instead the systemd service seems to execute after suspend.target no matter what I do. I tried a ...
0
votes
1answer
30 views

Systemd unit's ExecStartPre with script gives error, how to specify the path to the script?

There's a script which has to be run by a systemd service's ExecStartPre. What would be the proper path to put this script into and how to specify it in the unit? Currently using paths such as these ...
1
vote
1answer
35 views

Man pages but for services

Is there a way to see what a certain service is doing when you run the service --status-all command? For example, if I wanted to see what whoopsie was after I saw it running, is there a way to find ...
0
votes
0answers
16 views

How to implement a Linux update server? [duplicate]

I have a limited internet connection and I want to update all Linux PCs that I have(almost 30) but it will need every PC to download updates individually. I need some service in Linux to download ...
1
vote
0answers
19 views

SystemD application without sound

I am trying to run a kiosk application thanks to some videos played in chromium launched by a systemd service. When I am launching manually the following script, I can hear the sound of the videos #!/...
0
votes
0answers
24 views

How to make TeamViewer service be on-demand rather than always-on?

I am on Linux Mint 19.3 and would like to make the TeamViewer systemd service only run when I launch the GUI app (/opt/teamviewer/tv_bin/script/teamviewer). On Windows, this is fairly easy to do from ...
0
votes
1answer
21 views

Should I put my systemd [Install] section in my .path file or my .service file?

Configuring systemd to redeploy my service when I commit a new source .jar file, I have a path file that goes along with the service and uses a PathChanged directive. I read somewhere that the install ...
0
votes
1answer
46 views

Can't access services on server using it's public IP after starting Wireguard

If I set up my Debain server as a Wireguard client I can't connect to services running on the server from outside the local network (using it's public IP) anymore. From the local network and as soon ...
0
votes
1answer
11 views

systemd timer is running task on every computer restart

I use Ubuntu. This is /etc/systemd/system/myapp.service: [Unit] Description=... After=network.target StartLimitIntervalSec=60 [Service] Type=simple Restart=no StartLimitIntervalSec=0 User=myuser ...
0
votes
1answer
15 views

Need for the -n option in netcat

According to man nc -n Do not do any DNS or service lookups on any specified addresses, hostnames or ports. What I do not understand is why it needs to do any service lookup (also I do not know ...
1
vote
1answer
30 views

Systemd ignores After and Requires for my service

I've created a service that runs a Bluetooth server application and is started like this: [Unit] After=bluetooth.service Requires=bluetooth.service [Service] Type=simple ExecStartPre=/usr/bin/sdptool ...
1
vote
1answer
25 views

Systemd: How to get a timer to run after a required service?

Currently, I have this systemd timer (my.timer): [Unit] Description=My Timer [Timer] OnActiveSec=30 Unit=my-subsequent.service [Install] WantedBy=multi-user.target The timer is set to activate ...
0
votes
0answers
26 views

Systemd: RequiredBy dependency is triggered even when failure occurs

I have 2 systemd services test-dl.service test-db.service that must be executed in a sequential order only when the first service succeed. I'm using the After option to set a sequential order between ...
0
votes
0answers
20 views

why I am not able to start the ftp service in /etc/services

I want to enable FTP on my Raspberry PI which comes shipped with Debian Linux. I am able to find out the service available in /etc/services file. root@raspberrypi:~# uname -a Linux raspberrypi 5.4.51-...
0
votes
3answers
71 views

How create a service in linux that can handle queries?

I want to create a linux service and be able to communicate with it. Something like a database which I can add and get data. Is there any way to communicate with my service without making the service ...
2
votes
1answer
132 views

systemd exits create-react-app

I am trying to use a systemd service to run a Node app (specifically, a React app generated with create-react-app. I put a file frontend.service at /etc/systemd/system/ with (minimally) these ...
0
votes
0answers
15 views

service on centos7 using python flask uwsgi and nginx

I am trying to build a service with nginx that run uwsgi file. My service name is “slvv.service” this is my service code [Unit] Description=uWSGI instance to serve slvv After=network.target [Service] ...
0
votes
1answer
78 views

Failed to reenable unit: Unit file hddtemp.service does not exist

When doing daily updates on my Linux Mint 20 system, I noticed: Reloading systemd Failed to reenable unit: Unit file hddtemp.service does not exist. that program I might have used in the past, but ...
1
vote
1answer
28 views

systemctl start foo.timer also starts foo.service even though the OnCalendar criteria hasn't been met

So I have my service unit (runs some node code) and my timer unit Service: [Unit] Description=foo [Service] Type=oneshot ExecStart=/home/ubuntu/services/foo/start.sh Timer [Unit] Description=foo ...
0
votes
1answer
39 views

SSH service running on multiple ports with custom rules in Linux

I was working on setting up a server with SSH service running on multiple ports like say, port 22, and 5522 and these port should be having a different set of rules, ie: The rules we added for port 22 ...
0
votes
1answer
26 views

How to access Xorg before login in user service that needs some X features and started by user lingering

I have a user service in ~/.config/systemd/user which needs some X features (it needs to make some painting and image manipulation features). The unit file is something like: [Unit] Description=A ...
3
votes
1answer
27 views

Disabling vbox services to decrease boot time

I did a systemd-analyze critical-chain at boot on my system, vanilla Arch running on i3wm. Now, I also have Virtualbox installed on my system. Therefore, the output from systemd-analyze critical-...
0
votes
0answers
19 views

How can I run sox as a service?

I want to run the following bash for recording speaker output as an mp3 file using sox as a service in background (Ubuntu 20.04): #!/bin/bash echo "Monitoring sound card for recordings" name=...
0
votes
1answer
26 views

sox FAIL formats: can't open input `alsa_output.pci-0000_00_1b.0.analog-stereo.monitor': can not open audio device: Connection refused

I wrote the following service to listen to the audio input: [Unit] Description=Monitor Audio Output After=syslog.target network.target plusaudio.service [Service] Type=simple ExecStart=sox -v 5 -t ...
1
vote
0answers
19 views

systemd service — wait for vbox mount of shared folder

On a VBox VM I have a service that monitors the ip status for changes. Joining a VPN for example. The working script requires access to a path on a VBox shared folder mounted at /mnt/host. This mount ...
-2
votes
2answers
21 views

Is Removing vsftpd & ssh from init.d safe?

Everytime my system boot up, the ssh and ftp services are automatically start, is removing them from the init.d (init process) will solve my problem ? And is it safe ?
0
votes
1answer
83 views

Why squid doesnt work with https sites

I have setup a squid server which redirects USERS to http://testas.lt/, but it only works with HTTP sites, with HTTPS I get an error. Here's the code: http_port 8080 intercept http_port 3128 acl ...
0
votes
0answers
28 views

What's wrong with my systemd/system/my_service.service?

Here is my service file. [Unit] Description=my_service [Service] ExecStart=/home/ubuntu/my_scripts/script.sh Restart=always Type=simple And here is /home/ubuntu/my_scripts/script.sh #!/bin/bash ...
0
votes
1answer
28 views

systemctl services + how to un-limit StartLimitBurst

we defined the following details in our service Restart=always RestartSec=10 StartLimitInterval=400 StartLimitBurst=5 RemainAfterExit=no LimitNOFILE=60000 the details defined that service will start ...
0
votes
1answer
39 views

Find the service from an installed package (rpm)

I'm trying to link a list of installed packages to the services they have running on a system (init.d). I'm using ansible for this, but of course a bash hint is also usable. For example if upon ...
0
votes
0answers
31 views

Make systemd service shutdown late

I have a service that is supposed to start early and stop late during reboot or shutdown. However currently it does indeed start pretty early but is also stop pretty early. Here is my current service ...
0
votes
1answer
57 views

Can I get a service to access the terminal?

I have a flask app that I wrote with Python and published with gunicorn service, but I learned that the services have no communication with the terminal, so I can't use pexpect module. Is there a way ...
1
vote
3answers
35 views

Desktop entry to stop a service, launch an application and restart the service when the application is closed

I have an application (OS is Ubuntu 16.04) that basically open the camera do some stuff with the video stream. It's managed by a systemd service: [Unit] Description=My Application After=network.target ...
1
vote
0answers
29 views

AIX + mkssys stdout to my own file = always empty file

I used mkssys -s service -p $BIN -u 0 -S -n15 -f9 -o /var/log/stdout -e /var/log/stderr to specify my own console and error log files and they are always empty (though the file itself is created ...
0
votes
0answers
28 views

How to make a systemd service to display an image for n seconds before reboot and shutdown

I am trying to create a systemd service that displays an image before reboot and shutdown commands are encountered in a Ubuntu 16.04 desktop system with lightdm. The below service is executed upon the ...
0
votes
4answers
60 views

Is /etc/services actively used when an application binds to a port?

When an application is looking for a port to bind to, is /etc/services actively searched to ensure there are no clashes?  I.e., if a port is registered in /etc/services, is it reserved whether it’s ...
0
votes
0answers
24 views

Building strongSwan from source

I'm having huge trouble with getting strongswan to work. I'd like to try the newest version and customize it with plugins. I'm following the instruction available here: https://wiki.strongswan.org/...
1
vote
1answer
16 views

Debian 10: Checking the Status of Services

I want to know if it is possible when checking the status of a service on the system with systemctl status application.service, see the full log lines, not only the first few log lines
0
votes
2answers
181 views

how to check iptables status in centos 7.6

When I check iptables status in CentOS Linux release 7.6.1810 (Core) like this: [miao@MeowK8SSlave4 ~]$ service iptables status Redirecting to /bin/systemctl status iptables.service Unit iptables....
0
votes
1answer
12 views

I can't specify a directory when creating a service on Beaglebone

I don't know where to post this question because it's half a programming question and half a Linux question, so forgive me. I'm working on a project using Beaglebone Black and I need to execute a ...
0
votes
1answer
23 views

Systemd service that runs only for one user and as root

What I want to do Essentially I want to do this ~/.config/systemd/user/me_unit.service ----------------------- [Unit] Description="Unmount thing" [Service] User=root Group=root ExecStop=/home/...
0
votes
0answers
44 views

systemd: allow override of After= directive

I have two services, service Init and service Daemon. Service Init does system setup and is often used to setup a configuration file for service Daemon (ie, echo "MY_ENV_VAR=true" >> /etc/...
1
vote
0answers
93 views

Missing '='. in Debian service

I've created this service in /etc/systemd/system/webapp.service in a: Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 This is the content: [Unit] Description=...
1
vote
1answer
56 views

Run Systemd Service as Another User with Logind Session

Question How do I run an arbitrary service as an arbitrary user at boot with a logind session (specifically including all of the goodies under /run/user/uid) created for this user and without having ...

1
2 3 4 5
16