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
2 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
0answers
7 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 ...
-1
votes
0answers
18 views

How to execute command with sleep and log its output and service ID [on hold]

I am executing ( sleep 0.1m; sudo send 11111 2 1 ) 2>&1 & command from php this how: $command = '( sleep '.$delay.'m ; sudo send '.$switch->code.' '.$switch->number.' ...
3
votes
1answer
23 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
12 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
0answers
7 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
1answer
18 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 ...
1
vote
3answers
42 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 ...
0
votes
1answer
21 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, ...
1
vote
0answers
15 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
18 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
2answers
42 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
3answers
23 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
7 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 ...
0
votes
1answer
52 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
18 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
18 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
30 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
0answers
22 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] ...
1
vote
0answers
22 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
22 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 ...
0
votes
0answers
28 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
8 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
48 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 ...
5
votes
1answer
128 views

Why doesn't my systemd user unit start at boot?

I'm trying to create a systemd user unit and have it start when the system boots. The service does start manually, however it does not start at boot. From searching the Internet I learned that in ...
0
votes
0answers
31 views

Restart service after boot then enable networking ordering

Problem: Server application when first started upon boot has memory leak. When service is restarted, it will then run without issue. Temporary solution is to: AFTER the OS has completed booting, ...
1
vote
1answer
32 views

Sudo with NOPASSWD and service restart [duplicate]

I have an /etc/sudoers with the following: glens ALL=NOPASSWD:/usr/sbin/service php5-fpm glens ALL=(ALL:ALL) ALL And I'm trying to run the command: sudo /usr/sbin/service php5-fpm restart ...
0
votes
2answers
34 views

Run root program on login

Apache2, SSH, and similar don't seem to work (unless restarted) upon booting, and logging in graphically to device. To make it work, I have to type /etc/init.d/apache2 restart, and do the same for ...
0
votes
1answer
23 views

How to enable/disable services with upstart 0.6.7?

I need to disable a service in RHEL, before upgrading it. Stopping it does not do the trick, because it uses the respawn stanza , which causes it to start immediately after I stop it. The method in ...
1
vote
1answer
33 views

Keeping an SSH tunnel up while my system is up - init.d service or something else?

I use an SSH tunnel on my host computer daily; but so far I've just been manually using some terminal just for that: Entering ssh -D 5001 user@some.where.com at the command line, and redoing it if ...
4
votes
1answer
77 views

How do you disable a service in systemd?

I know what the command is sytemctl disable NAME but I have a question about the NAME parameter. For example the bluetooth service[1] on Fedora 21. For the NAME parameter should you put bluetooth or ...
2
votes
1answer
628 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 ...
3
votes
0answers
31 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 ...
2
votes
0answers
74 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 ...
2
votes
1answer
348 views

systemd service and multiple haproxy instances

I have a requirement to run a couple of instances of haproxy and I need to update the haproxy.service file to add the second command / instance. Google lead me to adding the second command on the same ...
4
votes
4answers
156 views

Does a service restart send a HUP?

I have noticed that doing a service restart with something like: service sshd restart is very similar to doing something like: pkill -HUP sshd However the pkill would close my ssh session where ...
2
votes
1answer
26 views

How does kill by pgid affect new subprocesses?

I have a very complicated application, which has its init-script and main service runs as a daemon. I want to stop it fast and gracefully, so I used this in stop() function: group_id=$(ps -o pgid= ...
1
vote
1answer
27 views

Keeping services on EC2 alive

I'm using a MySQL database and Apache server with an AWS EC2 instance running AWS Linux. I start them both using the service command, but I am not familiar with any other tool that would come ...
0
votes
0answers
316 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 ...
0
votes
0answers
68 views

Can´t run COUCHDB service

I am trying to run couchdb service, but after type # service couchdb start I get answer: Failed to start couchdb.service: Unit couchdb.service failed to load. No such file or directory. I've ...
1
vote
3answers
67 views

Execute a command after 10 minutes of boot

I have a CentOS Server. When the server Boots up I want to execute a command after 10 minutes of booting up. How can I do so? $ /usr/bin/curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT ...
1
vote
3answers
294 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 ...
1
vote
1answer
117 views

Monitoring systemd service activation times

I'd like to be able to retrieve from systemd how much time the last activation of a oneshot service took. I thought about the following options, but they didn't manage to convince me completely : ...
0
votes
0answers
27 views

I have error in postgresql service

Today I would like to test my metasploit. So, first I run service postgresql start, so here problems: root@localhost:/# service postgresql start [....] Starting PostgreSQL 9.1 database server: main ...
0
votes
1answer
197 views

How to run ipython notebook as a service

I have ipython notebook running properly but I'd like to run it as a service (start, stop, restart) so that I don't have to start it manually every time I login with SSH. How can I do that?
0
votes
0answers
72 views

How to start xend service automatically on boot?

I am trying to auto-start xend and xendomain service automatically on boot as soon as I log into XEN-dom0 (on Ubuntu server 12.04 x64) so that when I type : sudo xm list the hypervisor lists me all ...
3
votes
0answers
61 views

Memory consumption over variable period of time

There are a number of questions on this StackExchange about memory consumption, notably: How to check which process is using most memory How to display top results sorted by memory usage in real ...
0
votes
1answer
161 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
22 views

Config folder for a service

Context When running the Deluge daemon (deluged) as a service, you can specify an option to where the config folder will be created. The deluge-user I've created, is a system account, and therefore ...
0
votes
1answer
29 views

Where do service permissions come from

I'm trying to broaden my knowledge of the events surrounding system startup. I see that there are many process which are started without root level permissions. e.g. rsyslogd is listed as running ...