1
vote
1answer
39 views

start-stop-daemon keeps editing my shebang making it impossible to run

start-stop-daemon --name flaskserver --start --chuid root --exec /root/worker/start.sh start.sh clearly has this line #!/usr/bin but after I run above, it results in !/usr/bin and of course it will ...
13
votes
1answer
595 views

How can I ensure a service is disabled on boot? [duplicate]

For some reason I need to disable a system service on boot. In my case this is the Avahi Daemon. I just don't want it to start on boot. In previous Ubuntu releases (e.g. 12.04) I could do sudo ...
0
votes
1answer
41 views

How do I make a Ubuntu VM that boots to Terminal but has GUI capabilities?

I have to make an Ubuntu VM (Virtualbox) to run python scripts (on windows hosts) utilising GUIs like pygame, tkinter and pythonwx (especially Tkinter for my legacy apps) Making a VM appliance with a ...
0
votes
0answers
135 views

Audio playback freezes on setuidgid from daemontools service

I can't seem to use aplay or cvlc in tandem with any other audio applications when it's running as a service under daemontools. The setup is that I've got a bash script that I've got running that ...
0
votes
0answers
95 views

Keeping python alive through gnome 3 screen lock?

I've been through the ringer with this one the past few days. I wrote a script to re-target my Altcoin miner every once in a while. It builds a command string from API data grabbed at coinwarz.com on ...
0
votes
2answers
295 views

how do I use upstart, instead of cron, to start a single instance of a job which should always respawn?

How do I script the following bitcoin/dogecoin/etc cpuminer command: /home/digger/cpuminer/minerd -o stratum+tcp://doge.pool.webxass.de:3333 -O <user>.<worker>:<worker_password> ...
2
votes
3answers
4k views

Why service restart fails with :-restart: Unknown instance:

root@kumarswamys-desktop:/etc# sudo /usr/sbin/service vsftpd restart restart: Unknown instance:
2
votes
2answers
96 views

Why does chkconfig highlight the word “on” by default in Precise?

Why does chkconfig highlight the word "on" by default in Ubuntu Precise?
3
votes
1answer
165 views

Daemon for moving files between partitions?

I have a system with Ubuntu installed in 20GB and windows in 100 GB, two partitions - each of 100GB using NTFS. While using DC++ (multiple downloading of big file) I used to get message that system is ...
5
votes
1answer
3k views

How do I choose which way to enable/disable, start/stop, or check the status of a service?

If I want to start a system installed service, I can do: # /etc/init.d/some-svc start # initctl start some-svc # service some-svc start # start some-svc If I want to disable a service from running ...
5
votes
3answers
2k views

How to run a program as a service (silent)?

I have a python based server which i start from the terminal. This particular instance of the terminal then gives control to the program, and the program uses it as a kind of logging window, until its ...
0
votes
1answer
1k views

Does anyone know how to connect to a terminal services gateway using a RDP V6 compatible client in Ubuntu 12.04?

Right now the only reason I have windows installed ( on it's own drive ) is that I need to connect to my computer at work and it's behind a TS gateway. Does anyone know of a RDP v6 compatible client ...
1
vote
2answers
1k views

What is start_daemon?

I'm trying to understand start_daemon in the following /etc/init.d/nagios-nrpe-server startup script: start) if [ "$INETD" = 1 ]; then exit 1 fi ...
3
votes
1answer
582 views

Why does $ service --status-all output to STDERR instead of STDIN?

This is very unintuitive. e.g. When a user tries to: # service --status-all | grep postgres This won't work... The only way to grep `service' is: # service --status-all 2>&1 | grep ...
0
votes
1answer
375 views

How should I specify command-line arguments for atd?

The manual for atd describes the command-line option: -b Specify the minimum interval in seconds between the start of two batch jobs (60 default). How can I permanently set this option so ...
19
votes
5answers
40k views

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. ...
1
vote
2answers
2k views

How should I specify command-line arguments for MongoDB?

MongoDB has instructed me to change its command-line arguments: REST is not enabled. use --rest to turn on. but this is all I know how to do: sudo service mongodb start Where should I apply ...