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

1
vote
1answer
976 views

openfire chat server Deamon not getting start while server up every time

we using a Chat server, its installed with openfire, for local office use we installed it, every day morning while server getting ON openfire service is not getting started, I have added it in run ...
0
votes
1answer
28 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
1answer
1k views

Unable to start vncserver in RHEL 7

Following the instructions from Redhat documentation (TigerVNC), I've installed VNCserver in RHEL 7. When I try to start the vncserver service, it returns an error #systemctl start vncserver@:1....
0
votes
0answers
4 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 ...
1
vote
1answer
850 views

Default-Start contains no runlevels

I am trying to make my custom made daemon run at startup and when I call update-rc.d ydcd enable I get the error update-rc.d: using dependency based boot sequencing update-rc.d: error: MyDaemon ...
0
votes
0answers
26 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
10 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 > ...
10
votes
3answers
6k views

How could we allow non-root users to control a system.d service?

With sysvinit, a sudoers entry like this would suffice: %webteam cms051=/sbin/service httpd * This would allow for commands such as: sudo service httpd status sudo service httpd restart Now, ...
1
vote
1answer
25 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 ...
0
votes
1answer
32 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
3k views

Runtime parameters for a systemd service

I am a little confused about how runtime parameters are normally supplied to a systemd service. The general idea I have is that the following happens: There is a file that contains the environment ...
5
votes
1answer
163 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 ...
2
votes
4answers
43 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 ...
2
votes
1answer
3k views

I stopped MiniSSDPD, will something bad happen?

I have been trying to harden my Debian system by stopping and disabling the 20 or so unnecessary services listening by default. One of them is called "minissdpd". Apparently this provides "discovery" ...
2
votes
1answer
68 views

What is wrong with my systemd unit file?

Here is my unit file: [Unit] Description=Backend Service After=mariadb.service Requires=mariadb.service [Service] Type=simple ExecStart=/var/www/html/pythonscripts/Backend.py [Install] Alias=BEd ...
1
vote
2answers
2k 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....
1
vote
2answers
47 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 ...
2
votes
1answer
49 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)." ...
3
votes
2answers
45 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
28 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 ...
0
votes
0answers
15 views

Can I start a service with optirun?

I have a laptop with two GPUs (Intel and NVidia) so I have to use Bumblebee (via optirun) to use my NVidia GPU with some applications. I would like a service, which can be found in /etc/init.d, to ...
0
votes
0answers
14 views

Keep all jars in a folder running on jvm's as services [migrated]

On a remote server I'm having a folder which contains serveral jars. Each of it will represent an application, which will open up a port, on which a web-application is served. It might look like this:...
2
votes
1answer
122 views

Unable to start ZNC as a service

Firstly, this is the exact same question as found here, but the given solutions did not work in my situation. Background I am running a CentOS 6 VPS and I want to run a ZNC bouncer on it. I ...
5
votes
1answer
4k views

MySQL stop/waiting issues; “can't connect … through socket” [duplicate]

So this was my first time putting up a LAMP stack on a Bodhi machine (previously experience with WAMP, and LAMP on 10.04); I got Apache going, and a Drupal install begun, then I go to create a new ...
1
vote
2answers
28 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
874 views

Linux- Stop a process running as daemon

I've started uwsgi as a daemon, how can I kill that process? Everytime I kill its pid, and then does ps aux | grep "uwsgi", it again comesin the output. I've also tried pkill uwsgi, but no use. How ...
11
votes
3answers
24k views

The rc0.d,rc1.d,… directories in /etc

I'm running Ubuntu where I have the directories /etc/rc0.d, /etc/rc1.d, /etc/rc2.d, ..., /etc/rc6.d. Example files from my machine: directory example symlinks in the dir ------------------------...
1
vote
1answer
41 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
2k views

Bittorrent Sync Autostart as a Service

I'm running a raspberry pi with the latest raspbian (debian) on it. I've installed btsync. Now I want to run Bittorrent Sync, when the system boots, not only when somebody logs in. Do I have to run ...
0
votes
1answer
19 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
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 ] ...
0
votes
0answers
33 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
47 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 ...
11
votes
1answer
5k views

What is the difference between start-stop-daemon and running with &?

I am setting up a service in /etc/init.d. I am looking at various scripts in there, some are implemented with start-stop-daemon ... and some with /path/to/script &. All of them save the pid in a ...
10
votes
7answers
33k views

hostapd will not start via “service” — but will start directly

I am having trouble getting hostapd to start as a service. It fails when I try to start it: $ sudo service hostapd start [FAIL] Starting advanced IEEE 802.11 management: hostapd failed! From what ...
0
votes
1answer
3k views

Error while starting slapd

In my CentOS 6.5 machine I just made a new import with the slapadd command to load a new LDIF (from another server). The dc values are exactly the same and it was working with a previous load. ...
1
vote
1answer
168 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=/...
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 ...
2
votes
4answers
11k views

setting mysql root password in CentOS 7

How can I log into the mysql 5.6 command line client and reset the root password in Centos7? I read the following at this link, but it does not work: 1) sudo service mysqld stop 2) sudo service ...
0
votes
3answers
51 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
28 views

How can I get the total of records using awk - Linux and 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
103 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
79 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
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 ...
3
votes
1answer
49 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 ...
1
vote
0answers
51 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
41 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 ...
4
votes
2answers
1k views

Run script every 30 min with systemd

I would like to execute a script every 30 min after booting into the system. I know you can use cron, but I don't plan to use this feature often therefore I'd like to try it with systemd. So far I ...
4
votes
1answer
5k views

What code runs when I type “sudo service nginx start”

I am having this problem: http://stackoverflow.com/questions/10939072/add-nginx-as-a-ubuntu-service-stop-and-reload-doesnt-work I am trying to understand if my code to start nginx is point to the ...
0
votes
1answer
124 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-...