A Linux service is an application (or set of applications) that runs in the background waiting to be used, or carrying out essential tasks.

learn more… | top users | synonyms

0
votes
0answers
10 views

Validate Upstart conf File without init-checkconf?

Using RHEL 6.7, I'd like to validate my Upstart conf file. However, I don't have: init-checkconf. How can I check the syntax of my conf file?
0
votes
0answers
34 views

restarting service

When I try to restart a service like apache with the following command: service httpd restart it hangs, meaning it says Redirecting to /bin/systemctl restart httpd.service but then it does ...
0
votes
0answers
23 views

Install custom init.d service on debian7?

please help me. Stupid question, but I look at the syntax and do not really understand how to correct it. The point: do a service for python3 http server. The command must be executed so. cd /var/www/...
0
votes
1answer
15 views

mysql service restarted during user being connected lead to failing service

I have performed a charset change via my.ini into utf8 and forgot a user loggen in in another terminal session, when I performed a service restart. Initially systemd reported a problem stopping the ...
0
votes
0answers
31 views

Unknown runlevel on Ubuntu 14.04, services not starting on boot

I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot ...
3
votes
2answers
98 views

How to stop an ssh server on arch linux

When I run systemctl start sshd.socket on my Arch Linux machine, then log into the server from my mac, then run systemctl stop sshd.socket on my Arch Linux machine, nothing happens until I ...
0
votes
0answers
37 views

Services (web, remote login, console, but not ping) unavailable as Apache hogs system resources

I just did an upgrade to my Ubuntu box. It upgraded, but now the machine, within hours (maybe less) of booting, is unreachable by ssh, by web browser, and even the console is blank... but I know it's ...
1
vote
0answers
26 views

How to manage users' orphaned processes?

I have a service that executes users' scripts which in turn spawn more processes. Some of those processes stop on external conditions that might not take place. Since the the parent is gone (e.g. may ...
-1
votes
1answer
58 views

Restarting a service on a time interval

How can I set the CentOS to restart a service on a time interval?
0
votes
1answer
76 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
0answers
55 views

service doesn't work

Background I am using this script in order to make my script running as service. I am using Linux Mint 17.3 Rosa. The problem Sometimes the start/stop works sometimes not. Sometimes, I have to ...
0
votes
1answer
22 views

SLES12SP1: How to add memcached to the new Services Manager

I installed a new SLES 12 SP1 VM from the scratch with memcached from https://memcached.org/. My question: On SLES 12 the /etc/init.d/<service> notation has gone. It is now provided by the ...
0
votes
1answer
37 views

WCF (like) Services in linux

I have been working on migrating machines at my workplace from windows to linux, and one stumbling block is our usage of C# wcf services. We like to host various c# services on one machine for ...
0
votes
1answer
60 views

Configuring simple service with systemd

We are using Bamboo server for continues integration with remote agents which are building our projects. These agent can be started up with a simple shell script (which works fine). But I thought I ...
0
votes
0answers
9 views

How to make VirtualBox related services manually started in Fedora 23?

Fedora 23 boots up too slowly, so I check it by using systemd-analyze blame, and this is the output: 1min 22.379s plymouth-quit-wait.service 17.100s firewalld.service 10.799s akmods.service ...
0
votes
0answers
35 views

snortd.service doesn't load on centos 7

I have installed snort Ids via its manual but there is a problem I am facing right now. There is no snortd service in init.d folder and when I run systemctl status snortd.service I get the following ...
1
vote
0answers
20 views

Trouble update-rc.d remove'ing dnsmasq on Debian Stretch

Background: On my Debian Stretch machine at home, I've noticed my DNS lookup times are pretty slow, and have concluded that the culprit is dnsmasq - since if I take it down, name resolution becomes > ...
1
vote
1answer
33 views

How to start a service on boot after ldap account is available

I have a machine hosting an LDAP database and services on other machines run as users from that database. Because the user accounts does not exist locally, the services fail to start when those ...
5
votes
1answer
186 views

“service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]

I use CrashPlan on my Debian 8 desktop. I have a script where I must stop the CrashPlan service at the beginning and then start it before exiting. I was using /etc/init.d/crashplan start for the ...
1
vote
2answers
87 views

systemctl .service file not working as expected

I am working with the service files in Centos 7 and am creating one for xymon. The issue I am running into is I am trying to configure start, stop, and restart. I went as far as using an existing ...
3
votes
2answers
56 views

Timeout with 'service network restart'

I have a script running on fedora 22 where I am restarting service network as part of a troubleshoot calling service network restart. I want to check if that command is taking too long to execute. If ...
0
votes
0answers
41 views

linux + start script under /etc/init.d dependencies with other services

from some reason the script UPMnT.sh not start at boot I cheeked everything: chkconfig is ok links are ok but I worry about maybe there are dependencies between other script to this script can ...
1
vote
1answer
40 views

Restart a service through apache

I am using CentOS 6.6 I trying to call service command in PHP code exec("sudo -u kouser bash ./1.bash 2>&1",$output,$code); 1.bash #!/bin/bash sudo service httpd graceful The output of ...
0
votes
1answer
24 views

atd dead but subsys locked

After I killed the atd process by hand (sudo kill <PID>), I can no longer start at jobs: [vagrant@localhost ~]$ echo ls | at 'now + 1 minute' job 6 at 2016-05-09 20:17 Can't open /var/run/atd....
1
vote
1answer
53 views

Can't make motd to show on Debian 8

I have a VPS with debian jessie on it. I want the dynamic motd to show when i connect through ssh. I tried with update-rc.d motd defaults (gives no output), systemctl enable motd gives: update-rc....
1
vote
0answers
30 views

Getting verbose feedback for systemctl commands [duplicate]

One of my biggest issues with systemd is the lack of any feedback when starting/stopping/restarting a service. With sysvinit, I'd get the following after issuing service openvpn restart: [ ok ] ...
2
votes
1answer
63 views

if I use multiplicative suffixes in systemd it errors - “failed to parse resource value”

Odd issue, this'n! As per the systemd man.. "The multiplicative suffixes K (=1024), M (=1024*1024) and so on for G, T, P and E may be used for resource limits measured in bytes (e.g. LimitAS=16G)." ...
0
votes
0answers
40 views

Unknown job error on running service

I am getting an 'start: Unknown job: elasticsearch' error when I try to do service elasticsearch start When I run service --status-all I can see elasticsearch present in the list. But I ...
1
vote
1answer
78 views

How can I run my jar file in the background [closed]

I have developed a quick HttpHandler java application (jar file) and I now need it to run. Basically my jar act as a web server and I need it to be running while my linux machine is on. How can I ...
0
votes
1answer
36 views

How can I avoid being prompted for a password in this script? [duplicate]

I’m using Amazon Linux. If I login as my “otheruser” user, and create a script, test.sh, with this text sleep 5 ; sudo reboot now I can login and run the script like so … [davea@mydevbox ~]$ sudo ...
0
votes
3answers
52 views

How to run an executable file (web app) 24/7 and restart automatically when it breaks down? [closed]

I have an executable file on a server which is a full-fledged standalone web application. When I login to a server via ssh and run the file, the website become visible in the internet. Obviously, ...
-1
votes
1answer
29 views

How can I get the total of records using awk - Solaris

I'm creating a script to add multiple features to monitor many servers, and I want to add a custom output using echo command to show the total of records as result of the command that I have executed. ...
1
vote
0answers
140 views

Automatically enable systemd services installed using deb?

I'm building a bunch of services to install on my own (automatically created) servers. I'm migrating from upstart on Ubuntu 14.04, where services are enabled by default (we have to do extra work if we ...
2
votes
1answer
135 views

Restart service after yum update?

Today I updated several of our servers using yum. 4 package(s) needed for security, out of 4 available Run "sudo yum update" to apply all updates. Three were openssh updates, one java. Do I need ...
1
vote
2answers
36 views

Is there a retry count setting for svscan?

I'm supervising a script with svscan which may run into errors and stuck there. When the script dies svscan restarts it right away but dies immediately. So it keeps restarting it. I don't seem to find ...
1
vote
1answer
13 views

About redirect log in rsyslog.conf

what is the difference between this 2 lines: mail.warn -/var/log/mail.warn mail.err /var/log/mail.err (with and without the -) and who i redirect a syslog msg from a host to a ...
2
votes
4answers
47 views

How to determine whether a service was terminated (not running but it should)?

I've got some services in /service/... in a gentoo-based system and I'd like to monitor these services. I can check whether they are running or down using svc-status but how can I determine whether ...
1
vote
1answer
229 views

How do I start Unicorn using systemd/systemctl?

I've wrote a systemd file for systemctl to start unicorn: [Unit] Description=Unicorn server [Service] SyslogIdentifier=my-app-unicorn User=deployer PIDFile=/tmp/unicorn.my-app.pid WorkingDirectory=/...
1
vote
0answers
87 views

How to start a service upon an lxc container start?

I would like to start OpenVPN automatically upon the launch of its lcx container. The container runs Ubuntu 14.04.4 LTS, service openvpn start is successful (when launched from the running container) ...
1
vote
2answers
48 views

Run an executable as a service on a port

I have a C program (say a simple Queue system) which I compile and get an executable file. I want to run this executable as a service on a specific TCP port on a CentOS system which I can connect to ...
3
votes
1answer
62 views

Trying to create a service but it won't start

Apologies if this is an obvious answer, I am a Windows admin professionally and only use Linux in my homelab to try to learn new things - so I'm very inexperienced with Linux. I am working on writing ...
0
votes
2answers
473 views

Service vs Process?

chkconfig has five distinct functions: adding new services for management, removing services from management, listing the current startup information for services, changing the startup ...
1
vote
2answers
116 views

I must run ./odoo.py as root instead of just having odoo service started

I just fresh installed Odoo 9.0 onto fresh installed Debian 8.3. I am having a strange problem, which I don't know, how to solve, because I don't really understand it. Odoo only works when I run ...
1
vote
1answer
65 views

Adding delay between stop and start of a process in systemd

I have a really strange issue with systemd. When I issue a systemctl restart it will start the new process before the previous one finishes. This can be seen in the log, where the final shutdown ...
4
votes
1answer
104 views

When is the appropriate time to start Redshift using upstart?

I have been trying to get Redshift to start before login so that the bright welcome screen does not blind me, in particular when switching users. Running Redshift as a service does not seem fully ...
0
votes
1answer
35 views

Start radio with systemd service

On a headless RaspberryPi, I would like to automatically start radio on boot, without any human action. I have written this file as /etc/systemd/system/radio.service : [Unit] Description=Radio Wants=...
0
votes
1answer
147 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-...
0
votes
1answer
43 views

How can I make a service to run on port 80 in Linux? (Details)

I'm using aws ec2 to run a Linux server. I'm running perforce on it which listens on port 1666 by default, but I want it to listen to port 80. If I set p4d to listen on port 80, it fails saying it's ...
2
votes
3answers
115 views

Bash script for service to check mount before start

I need to insert on some service scripts a condition on the top to check whether a device is mounted or not. I'm not very familiar with bash script... This is a first try I wrote but it doesn't work....
0
votes
1answer
28 views

How do you set a service run as a non user at boot time?

I have a PostgreSQL server that I start on the command line when I log on after I logon. It doesn't run as the normal PostgreSQL service, but under my name with the data stored in my home directory, ...