All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
94 views

Create and Manage Upstart Services without Root Access

Is there anything like ~/.config/systemd/user/ and systemctl --user start ... for Upstart? initctl --user ... required UPSTART_SESSION environment variable, looks like --user here has different ...
2
votes
0answers
311 views

Upstart service killed by TERM signal, how to track that

I have upstart script as description "My API API" author "me@localhost" env MY_API_PYTHON_HOME=/opt/services start on runlevel [2345] stop on runlevel [!2345] script mkfifo /tmp/my-api-log-fifo ...
1
vote
1answer
60 views

Prevent starting processes automatically

How can I prevent starting processes automatically. (e.g. I used mysql database about a year ago). I killed the mysqld processs and now I see it's running again. And many other processes I don't know ...
0
votes
1answer
352 views

Upstart Zookeeper script hangs and does not start

I've been writing a Zookeeper upstart service script as follows: description "ZooKeeper" limit nofile 32768 32768 start on runlevel [2345] stop on [!12345] respawn respawn limit 2 5 umask 007 ...
1
vote
1answer
59 views

Daemon service that runs a sequence of processes (balanced distribution)

I have the following problem. I have a machine learning process that runs in the background. Even better, I have plenty (let's say 5) that I want to run them. Each of them is CPU and GPU power ...
1
vote
1answer
2k 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 ...
1
vote
1answer
865 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 ...
6
votes
2answers
705 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
443 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
399 views

service stop doesn't run the exit/cleanup part

This is a sleeping service, import time bufsize = 0 f = open("/home/user/sleep-log", "w", bufsize) try: f.write("going for a deep sleep......") time.sleep( 1000000000) except: import traceback; ...
1
vote
2answers
2k views

What do +,- and ? symbols represent in `service --status-all`

What do +,- and ? symbols represent in service --status-all represent in Ubuntu 14.04. I am not able to understand it properly. I guess + here might mean delayed services which start after the ...
102
votes
2answers
367k views

How can I restart the SSH daemon on Ubuntu?

When I type in service sshd restart I get a sshd: unrecognized service error. I do have, in /etc/ssh/ a file sshd_config that I use to set config. I can also putty into the Ubuntu box (it is remote). ...
4
votes
3answers
3k views

linux launch script /etc/init with a specific user

I've created a script in /etc/init/mms-agent.conf : start on runlevel [2345] stop on runlevel [06] exec /usr/bin/env python /home/mms/mms-agent/agent.py >> /home/mms/agent.log 2>&1 ...