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
0
votes
1answer
30 views

can't start service linux 18.06

How can I start this service? What I'm trying to do is running a symfony4 command this file is created on /lib/systemd/system/file.service [Service] Type=simple ExecStart=/bin/bash -ce \ "/usr/bin/...
1
vote
1answer
42 views

How to make multiple systemd services start/stop as a group?

In Linux, regarding systemd: How do you make a service that starts a bunch of other services? ...acting like a container or group or parent. I have 5 or so systemd services: app.alpha.service app....
0
votes
2answers
109 views

How to generate “default” systemd .service file?

TL;DR How to generate an "editable" systemd .service file from an old system-V service? Recently, we had the issue that our home-grow "server manager" could not start a service on an "Ubuntu 16.04....
12
votes
1answer
5k views

a stop job is running for make remote cups printers available locally

At almost each shutdown of my Linux Mint 18.2 Cinnamon 64-bit, I must wait ages at: a stop job is running for make remote cups printers available locally Some information I find most useful: I ...
0
votes
1answer
969 views

How to start the metasploit service in Linux Mint?

I wanted to start the metasploit service to start armitage. But when i am typing in my console the command: sudo service metasploit start It says: Failed to start metasploit.service: Unit ...
0
votes
1answer
1k views

vsftpd fails to start

I'm trying to get vsftp up as a home project but currently facing a exit code=2 I don't know what I'm doing wrong and what is causing the issue. I did not set up PAM and I don't need to use that. ...
1
vote
2answers
1k views

Is there exists a PID for each tomcat service? If it exists, then can we find the service name from that PID of the running tomcat service?

I am working on linux server. I want to know whether there exists a PID for each tomcat service running on any server. If there exists a PID for a particular tomcat service, then can we find the ...
-1
votes
1answer
57 views

Failing service during boot, which one + solution?

System: Linux Mint 19.3 "Tricia" - Cinnamon (64-bit), based on Ubuntu 18.04, kernel 5.3.0-24-generic Problem duration: literally for a year or so. Problem description: since I have too large a ...
1
vote
1answer
104 views

SysVinit service wrapper for systemd on arch linux

I'm using Arch Linux and I'd like to use Cisco AnyConnect out of the box. Cisco AnyConnect is delivered as SysVinit service. The installation fails because directories like /etc/rc.d are missing. I ...
1
vote
2answers
3k views

Installing MySQL on CentOS throws error that cannot find mysqld.sock

I have yum install mysql in CentOS 6.4. Now, when I use mysql command, it throws the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld....
0
votes
1answer
39 views

systemd - .service default parameters

I'm replacing our old init.d Glassfish script with a .service file. I want the ability to start/stop domains one by one, but also a quick way to start/stop all of them at once. So far, I have this as ...
0
votes
1answer
1k views

Starting tomcat hangs on boot , but run successfully in command line

I installed tomcat9 on ubuntu 16.04, which start normally on command line, sudo /usr/local/tomcat9/startup.sh and all projects in webapps can be loaded. However, it always hangs on loading "...
3
votes
1answer
2k views

Making systemctl to shutdown process gracefully

I made a small systemctl service to manqge HLTV server (it records demos from a game and stores them on disk): [Unit] Description=HLTV server Requires=cs16.service After=cs16.service [Service] Type=...
4
votes
4answers
4k views

systemd status=127 for /usr/bin/install when trying to start MariaDB

I just upgraded my MariaDB installation to 10.2. When I now try to start the service, it tells me it failed an checking the status shows me this rather strange message: root@server # systemctl status ...
0
votes
0answers
39 views

Why does systemd report job failure for some services with Type=simple?

According to systemd documentation, systemd will report success as soon as the child process have forked off. This is consistent with results from my quick test: $ cat /etc/systemd/system/test....
1
vote
1answer
2k views

Service functions without sudo

My service on CentOS is configured to run under a certain user in its config file under /etc/systemd/system: [Service] User=buildman When I am sued as buildman, I can run: systemctl status ...
1
vote
1answer
52 views

Restart service after suspend after a certain amount of time

I am running a service called "thinkfan" for controlling the fan speed of my thinkpad laptop. The service reads the data temperature from a temporary file in a folder. This file is created every now ...
0
votes
1answer
3k views

nginx stop is not working and nginx is creating new process after killing processes

nginx version: nginx/1.8.0 I am trying to stop nginx with the following command /etc/init.d/nginx stop, however it is not returning any successful message. Then I tried to view the nginx processes ...
0
votes
0answers
49 views

Debian 10 Service not starting

Hello everyone, I want to create a service for Debian 10, but when I try to run it with the command “sudo systemctl start boot_time”, it doesn’t start. But it does start if I launch the script ...
0
votes
2answers
2k views

Create aMule daemon systemd .service file

I recently moved to Raspbian Jessie on my RPi and now I'd like to move all my services from init.d to systemd. aMule daemon it is now working with init.d but I want to move the script to a amule-...
4
votes
1answer
57 views

Ask for input prior to start a service

Somehow new to Linux, have used it in the past, though not as extensively as now. What I am trying to achieve here is to start a openvpn service as soon as the computer boots. I have partially ...
0
votes
1answer
134 views

Use dynamic date in systemd unit

I try use date output as part of log file name in systemd unit. Here example: [Unit] Description=TCS minetest server unit [Service] Type=simple ExecStart=/home/tcs/minetest/bin/minetestserver --...
1
vote
0answers
41 views

AIX - how modify the service configuration of the sshd? [closed]

I need to change the config file (path) and destination location on FS for the 'SSH tectia server' therefore I also need configure Tectia service. On Linux with systemd, I would just change '...
0
votes
1answer
238 views

systemctl authenticating as other user

I have made this script that allows non-root access for a directory so a program can make changes to files in said directories. This .service has worked on a few machines and even on the same machine ...
0
votes
1answer
29 views

Ubuntu: starting one service causes others to be non responsive

Ubuntu 18.04 Server I have multiple services running, that are all something like following template: [Unit] Description=projectA After=multi-user.target [Service] WorkingDirectory=/media/...
-1
votes
1answer
22 views

Solaris services type status

There are following service states in Solaris: degraded – The instance is running or available to run, but is functioning at a limited capacity. disabled – The instance is not enabled and is ...
0
votes
0answers
17 views

Is it possible for “service status” to be wrong?

We're running centos 6.7, it doesn't have systemctl. We are using Wowza streaming engine which runs on Java, I'm reporting this issue to wowza as well, maybe it's a bug from their end. Sometimes when ...
12
votes
3answers
3k views

systemd: Can't unmask root mount (-.mount)

(Dist: Debian 10) I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me), Unit -.mount is ...
5
votes
0answers
39 views

Mutually exclusive instances of the same systemd service template

I am interested if there's a better way to do mutually exclusive intances of the same systemd service template. Context: I am using SSH tunnels to connect over synergy between my laptop and which ...
0
votes
1answer
39 views

custom systemd service order

When you create two or more custom systemd services, how do you know which order they will be run? And will that order be sure thing? I am doing Type = idle which is supposed to mean Behavior of ...
0
votes
1answer
20 views

start a service before than another

I want to change the iptables at 3rd. By default, in directory /etc/rc3.d iptables service is S08iptables and I want to change it to S03iptables I executed the command below: ckconfig --level 3 ...
0
votes
0answers
342 views

systemctl start custom.service does not return

This is my custom service file (elastalert.service) [Unit] Description=Elastalert Documentation=https://elastalert.readthedocs.io/en/latest/elastalert.html#configuration Wants=network-online.target ...
0
votes
1answer
25 views

Systemd service vs .profile to start python program at boot

I have a python application running on a raspberry pi. Since the pi will be used mostly for display (no keyboard except for password input on boot because the pi user home directory is encrypted) the ...
0
votes
0answers
19 views

Custom Service Causing Boot Errors

Have not seen any post about this but it is possible I am searching for the wrong thing. My current specs are using a Raspberry Pi 3 B+ on the Stretch version of Debian. I am working on a service ...
1
vote
1answer
680 views

systemd: finish the execution of custom shell script before starting nginx

Using Debian 9 stable, I want to start a custom shell script before starting NGINX processes and shorewall firewall: Do some init work Mount a directory (overlayfs) to overlay /etc with NGINX ...
0
votes
0answers
533 views

Problem creating a service on Debian

I have a Sinatra application at /my/app/folder/app.rb which I normally execute on my local machine with the command rackup -p 9210. I would like to create a service that starts the app at every boot ...
1
vote
2answers
11k views

The tftpd-hpa doesn't start after update

I have tftpd-hpa installed(Ubuntu 16.04 LTS). Recently, maybe after getting some updates (or uninstalling some application with vaste dependencies) the tftpd-hpa doesn't start anymore. The tftpd-hpa ...
6
votes
2answers
1k views

Systemd Unit File - WantedBy and After

I have a question regarding making my own unit (service) file for Systemd. I've read the documentation and had some questions. After searching around, I found this very helpful answer that gives some ...
4
votes
1answer
299 views

Restart systemd .service with .timer unit

I have the following systemd myscript.service unit that executes an script: [Unit] Description=MyScript Wants=time-sync.target [Service] Type=oneshot RemainAfterExit=true ExecStart=/usr/local/bin/...
23
votes
5answers
183k views

How do I create a service for a shell script so I can start and stop it like a daemon?

I'm using CentOS 7 what my aim is to create a cron for every five seconds but as I researched we can use cron only for a minute so what I am doing now is I have created a shell file. hit.sh while ...
0
votes
1answer
25 views

A clean way to set a daily running time for a program

Kind of a noob question but I'm looking to have my networking daemon (wicd), run every day on my machine, only from 5am-6am and 6pm-7pm, regardless of when my machine was turned on, in other words, if ...
2
votes
1answer
54 views

Patch service file

I want to add MY_SERVICE@SOME_SERVICE.service to OnFailure= and make it persistent. For example, in /lib/systemd/system/apache2.service, I want to have the line OnFailure=MY_SERVICE@apache2.service in ...
6
votes
3answers
42k views

Restart all services without reboot

I do some group permission changes on the CentOS server, And then need restart all services. How can I restart all services safely without rebooting?
16
votes
1answer
94k views

failed to start service

I have created a systemd service: [Unit] Description=My service [Service] Type=forking ExecStart=/bin/sh $HOME/theFolder/run.sh Restart=on-failure [Install] WantedBy=multi-user.target Alias=mine....
0
votes
1answer
60 views

systemd service does not last more than 6 hours

I am getting this error message in my logs: Stopping User Manager for UID 1000 I think that's the reason why my systemd service does not keep running. Does anyone know what that means, and how I ...
81
votes
3answers
224k views

How do services in Debian work, and how can I manage them?

In Windows I have the services manager, where I see all system services, that can be started through Windows itself, I set up the user it uses, the rights management is in there, and I can pass ...
5
votes
1answer
124 views

Method to determine what `Type` of systemd service to use for any given application

I think I have a relatively good handle on the different Type of services which systemd can be configured for (e.g. simple, oneshot, etc). The docs provide a pretty reasonable overview and ...
22
votes
1answer
2k views

Why do popular TCP-using services have UDP as well as TCP entries in /etc/services?

I'm reading a book on network programming with Go. One of the chapters deals with the /etc/services file. Something I noticed while exploring this file is that certain popular entries like HTTP and ...
0
votes
2answers
882 views

SystemD `Requires` fail when required unit fails for the first time

I have created a SystemD unit to start a service, and that service requires another unit to start beforehand. I've set the depending service with Requires=dependant.service, and that way when ...
6
votes
5answers
32k views

How to start SSH daemon on boot on Linux Mint Debian v2

I'm using Linux Mint Debian v2, 64-bit. I noticed recently that my ssh daemon does not start automatically on boot. It used to. I'm not sure if it had to do with my UFW configuration or sshd_config ...

1
2
3 4 5
14