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
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
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 ...
1
vote
1answer
94 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 ...
1
vote
1answer
890 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
34 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
10k 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
43 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
27 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
45 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 ...
0
votes
1answer
2k 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 ...
2
votes
1answer
39 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 ...
0
votes
1answer
13 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
11 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 ...
1
vote
1answer
21 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 ...
3
votes
1answer
33 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
20 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
36 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
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 ...
9
votes
3answers
4k 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, ...
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
78 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 ...
0
votes
2answers
57 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
78 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 ...
4
votes
1answer
75 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 ...
1
vote
0answers
29 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 ...
0
votes
1answer
21 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 ...
0
votes
1answer
30 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 ...
0
votes
1answer
27 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, ...
2
votes
3answers
72 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 ...
1
vote
0answers
50 views

Service 'org.kde.kaccessibleapp' does not exist

I got this error in ~/.xsession-errors, openConnection: connect: No such file or directory cannot connect to brltty at :0 Service 'org.kde.kaccessibleapp' does not exist. There is no kaccessible ...
0
votes
1answer
513 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
2answers
130 views

Systemd wait for network interface to be up before running service

I have a couple questions about systemd. I'm having issues consistently getting my script to run once the network interface is up. I have tried Requires and After as seen below but is inconsistent ...
0
votes
1answer
20 views

What service executes that sets up the real time clock

I'm looking for the service that runs that sets up the correct time on my system. Does anyone know what service does this?
0
votes
3answers
27 views

How can I tell if service and systemctl are the same command?

I'm trying to run Nginx using Systemd as a process manager. When I run sudo service nginx start and then type ps -aux | grep nginx it appears to be the same process running as when I started it using ...
0
votes
0answers
27 views

update-rc.d service running on shutdown

I've setup a startup script in Yocto Poky by putting boot_script.sh in /etc/init.d and running update-rc.d boot_script.sh defaults 99 from that folder. This results in K99boot_script.sh in folders ...
1
vote
1answer
712 views

Every time I restart my computer I need to restart Bluetooth service, how can I fix this?

Every time I turn on, restart or wake up my notebook or I have to restart my Bluetooth service in order for me to use it. But once I restart the service everything is fine. How can I delay the start ...
0
votes
0answers
19 views

systemctl script not able to read and write

I have a script running at start up using systemctl. Shown below. The script that runs just reads and writes data from a txt file. [Unit] Description= Start sample script After=local-fs.target ...
1
vote
1answer
43 views

whats the best way to remove pid files before starting a service

I have a service that does not always remove its pid files when shutting down. So when it goes to start up again it fails. My system is a RHEL 7.2 system and what I want to do is have the system look ...
3
votes
0answers
49 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 ...
2
votes
1answer
2k views

What does status “active (exited)” mean for a (custom) service?

I'm working with a custom service which essentially runs a web server, called thisismywebserver. Currently it's not working (ie I get an "Unable to Connect" error trying to access a page). When I ...
1
vote
0answers
44 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] ...
3
votes
0answers
37 views

Symlink as WorkingDirectory in systemd service

I have a service with WorkingDirectory=/srv/ctr/current which is a symlink. It seems the service doesn't pick up changes in the symlink when restarted. The error log reports /srv/ctr/releases/69 as ...
1
vote
0answers
40 views

Trouble setting up systemd service on Centos 7 system

An application from a vendor was installed with a non-root user. This is supported by the vendor and all is good. So the non-root user owns all the installed application executables and files. One of ...
1
vote
0answers
29 views

How to advertise a service on a port

I want to run a service(a server typically) on a host and it should advertise to other machines in the network. Let's say I'm running a ReST service which provides the temperature based on location ...
7
votes
2answers
16k views

Which services can be disabled on Fedora 14?

Following is the output of $chkconfig | grep 5:on on my laptop running Fedora 14. NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off acpid 0:off 1:off 2:on 3:on ...
1
vote
3answers
29k views

Can't start mysql service

Trying to start my mysql service. /etc/init.d/mysql start returns: Job failed. See system logs and 'systemctl status' for details. Further: systemctl status mysql.service returns: ...
0
votes
0answers
38 views

systemctl not works for own daemon

I have a problem with starting own daemon program using systemctl in Debian (deamon has wirted in golang if this have any meaning) I created file in /etc/systemd/system/tcp-server.service . His ...
0
votes
0answers
11 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
162 views

Universal Media Server not working

I'm trying to get Universal Media Server to work on a headless Debian 8 home server to stream video to my PS4 and other devices. I followed this tutorial ...
25
votes
2answers
86k views

List of available services

Is there any command that would show all the available services in my wheezy Debian based OS? I know that in order to see all the running services you can use service --status-all.