The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
442 views

Server-side antivirus [closed]

We're looking for some sort of antivirus for a server running Linux and can't seem to find a decent one that runs server-side. And by serverside I mean that it could run as a daemon instead of having ...
1
vote
1answer
225 views

Does STDERR go to syslog in an LSB init script?

I am running a Debian system and have an init script in /etc/init.d/ that starts a daemon using start-stop-daemon: start-stop-daemon --start --quiet --pidfile /tmp/myproject.pid --exec ...
0
votes
1answer
143 views

How can I run terminal commands at startup on a Mac OSX server?

For example, when the server boots I need to start Tomcat, and I need to start an Android emulator, and then issue some commands to it. These are on the path already. I'm familiar with Linux and ...
1
vote
1answer
134 views

Considerations for building SysV or Upstart compatible Bash scripts

I've just knocked out a quick script for keeping a slave web server in sync with a master using rsync. (https://github.com/simonjgreen/liveFolderSync/blob/master/liveFolderSync.sh) I'd like to make ...
1
vote
1answer
1k views

Disable nginx, but keep it installed

I have nginx installed on CentOS and now I need it to be disabled (including on reboot), but keep it installed for further use. Should I only remove /etc/init.d/nginx file? Or is there more graceful ...
0
votes
1answer
334 views

Running Celery as a daemon

I'm testing Celery with RabbitMQ on Ubuntu11.04 on a python project that is not a django project. I have my celeryconfig.py and my test.py file in /mypath/myproject/. My /etc/default/celeryd looks ...
2
votes
2answers
616 views

Ubuntu Daemon Best Practices?

I have a RingoJS webserver (runs atop Jetty) that is part a an Apache reverse proxy setup. I would like multiple Ringo processes to run autonomously in the background, startup automatically on ...
1
vote
2answers
153 views

init.d service died

Adapting some code from a linux forum, I've added a service script to /etc/init.d on my ubuntu natty server to start/stop/restart node.js It literally was working the first day I made it, but then ...
2
votes
3answers
1k views

How To Install Git Daemon on Ubuntu 10.04 Linux with SparkleShare (and use it like Drop Box)

I tried following this doc... https://help.ubuntu.com/community/Git ...but unfortunately the "initialKeyFileName" step is not explained.
1
vote
1answer
53 views

On Mac upon reboot, how to make a new daemon start and an old daemon not start?

We have a daemon running on a Mac server (10.6.6). We want to install another newer version of the daemon along side it but not start it. Then at a specific time, we want to reboot the server and ...
2
votes
2answers
675 views

Restarting a Perl-script (socket daemon) from /etc/inittab

I run a small multiplayer card game with around 500 users at peak times: The client is in Flash and the server is in Perl. The Perl server binds to port 8080, i.e. only 1 instance of it can be ...
2
votes
1answer
398 views

How to permanently “renice” a process on Mac OS X (or iOS, etc)?

I use a nice (free) process manager called ATMonitor for Mac OS X that has a lot of cool hidden features... one of which is being able to click on a running process.. and set the "renice" from +20 ...
3
votes
1answer
953 views

Daemon can't be started from fabric script or on boot - only interactively

I have a daemon script in /etc/init.d that performs some background packet logging using the tcpdump command. The script starts up fine using an interactive shell using sudo /etc/init.d/packetlog ...
0
votes
2answers
71 views

Configuring Syslog to accept remote log submissions

By default syslog daemons don't accept remote log submissions. I need mine to, but don't really have a clue how to configure that. Can anyone help me out, send me a good tutorial, etc. I have been ...
0
votes
2answers
1k views

Access a Network drive from another user from CMD (windows)

I have written PostgreSQL backups scripts that backup all the databases to file. pgAgent.exe (a scheduling daemon) starts the BAT scripts under the local postgres user. The normal setup is to backup ...
2
votes
1answer
732 views

Trouble running Python Celery as a daemon

I have Celery setup and running as a daemon on a Ubuntu EC2 instance. This morning I updated some of the tasks and tried to restart Celery and it wasn't working. After working at it a bit I found: ...
1
vote
3answers
1k views

SSH dial home daemon or automatic tunneler?

I know a number of vendors that sell network/server appliances, that have a support button, that once pressed, setup an SSH support tunnel back to the vendors main servers so the support technician ...
0
votes
3answers
2k views

Working around the stale pidfile problem after hard restart kills my daemon

I'm using Red Hat Linux (RHEL5) on a (VMWare) VM. I've written a daemon which should stay running all the time and automatically run on boot. Last night the VM host had an unrecoverable hardware ...
3
votes
5answers
373 views

Source code for Linux utilities and daemons

Where can I find the source code for Linux utilities and daemons. Basically I want to know the repository of source codes other than the Linux kernel.
2
votes
2answers
2k views

Deploy Jetty as port 80 daemon on Linux

I'm curious what techniques you Linux admin gods are using to manage your Jetty deployments. I come from a Windows Server background so I'm still getting used to all of this. I've been looking for a ...
4
votes
1answer
4k views

Launching a PHP daemon from an LSB init script w/ start-stop-daemon

I'm writing an lsb init script (admittedly something I've never done from scratch) that launches a php script that daemonizes itself. The php script starts off like so: #!/usr/bin/env php <?php ...
0
votes
2answers
217 views

System reboot on executing “date -s” command

My system reboots when i give the "date -s" command. I collected the log and it says this Jan 18 13:27:46 watchdog[2421]: file /tmp/cmm/strobeWDT was not changed in 1 seconds. Jan 18 13:27:46 ...
0
votes
2answers
143 views

Individual Authenticator (Daemon) for Apache Wildcard-VHosts

In our development environment we're using the following VHost-Configuration for the majority of our projects: <VirtualHost *> ServerName misc.webdev.local ServerAlias *.webdev.local ...
3
votes
4answers
3k views

How do I find out the process id of the backgrounded process?

I've got a command (program) that I'd like to run with nohup and background it. Like nohup command > logfile.txt & How do I find out the process ID? I would like to be able to write the ...
3
votes
3answers
110 views

Linux directory conventions for custom service

I'm writing a custom application that will be run as a service/daemon. According to convention, the binaries for it should be in /opt/appname. However, where do I put files such as: Config files ...
3
votes
2answers
3k views

start sinatra app in background with stdout and stderr redirected(append) to a file

I have a sinatra app which I run on my local machine using ruby app.rb. While deploying it on a remote machine via ssh, How do i run it in background and redirect stdout and stderr to a log file. On ...
2
votes
2answers
359 views

How to tell if an ssh ControlMaster connection is in use

I'd like to use ssh's ControlMaster feature to share connections for speed increases. I'm trying to script it so that I can start/restart/stop a number of connections to different hosts. How can I ...
1
vote
1answer
151 views

Searching for a lfd tutorial [closed]

I just got me a new centos server, and fould out it's running lfd. It looks nice, but I need to configure it. It keeps warning me about mysql running, or myself logging in via ssh, and so on. I ...
1
vote
3answers
2k views

How to install Mono XSP as a daemon on Debian?

I want XSP to run on my virtual Debian 5 as a daemon. How can I do that? I tried next: $ sudo cp /etc/init.d/skeleton /etc/init.d/xsp updated the script properly: ...
2
votes
1answer
1k views

MySQL Eating CPU Usage (Urgent)

Recently, I purged the cache files for my website and now MySQL is eating up CPU up to 100%. It slowly grows from 10% to 100% within 5min and so the server crashes. Fortunately, I turned stopped the ...
1
vote
2answers
5k views

Updated MySQL: MySQL Daemon has failed to start

Just updated my MySQL on CentOS when I did yum update. My website threw some MySQL errors and I found out that MySQL wasn't running: # /etc/init.d/mysqld start MySQL Daemon failed to start. Starting ...
3
votes
3answers
1k views

How can I drop privileges and still clean up my pid file in /var/run?

I have a daemon called foo. My init script /etc/init.d/foo starts the foo daemon and stores its pidfile in /var/run/foo.pid, which seems to be the standard place. Because /etc/init.d/foo must be run ...
7
votes
2answers
6k views

What's the purpose of kslowd?

I'm running Ubuntu 10.10: uname -a Linux mt-xps 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux When I run top, I occasionally see a "kslowd000" or similar process ...
0
votes
3answers
64 views

Basic local HTTP daemon

I'm trying to find the most basic HTTP deamon possible. All it needs to do is allow me to access local files through a browser using the http:// protocol. (I can't use file://) Would be great if it ...
1
vote
2answers
405 views

Proper way to manage Daemons, Debian/Ubuntu Linux

What is the best way? Or at least... an easily managed one? I am routinely creating shell and python scripts that need to always be running in the background. Any recommendations on packages that ...
1
vote
2answers
2k views

Does NTP daemon set the host timezone?

If I am using NTP daemon or ntpdate command, do I need to worry about changing the timezone? Should I re-configure the timezone using cron job to guarantee the accuracy of the server time? I am ...
1
vote
1answer
395 views

How can I force gnu screen to flush it's logfile?

I am using screen like this: screen -L -dm -S session1 -c "./game_server -options" to wrap around game servers. I log their output to a file, and can send them input with: screen -r session1 -p0 ...
1
vote
3answers
421 views

What, if anything, is safe to symlink in /var?

We have plenty of space on a different mounted device. Since the /var partition stays relatively static in terms of size (around 8-10GB because of big logs that we need), I'd be fairly happy to simply ...
2
votes
2answers
841 views

Starting jetty service from SSH

I am trying to start jetty service from ssh using the command: ssh -t myhost "sudo /sbin/service jetty6 start" All works well, service comes up but after the command terminates and the connection ...
0
votes
2answers
80 views

Does Anyone Know Where To Find Some Example Daemons?

I´ve never written a daemon before and I am trying to write a rather complex one that has to connect to a MYSQL database to see if it is time (or past time) to perform a ftp retrieval, then try to ...
5
votes
4answers
1k views

No coredumps for daemons started at boot by init.d on Ubuntu

How can I get daemons started by init.d at boot to coredump on Ubuntu? This is what I have done so far... echo "ulimit -c unlimited" >> /etc/profile mkdir /corefiles/ chmod 777 /corefiles/ echo ...
5
votes
3answers
6k views

Ways to set umask on Ubuntu for daemon processes

I have an http daemon server process (yaws) that I would like to have server write any new files with a umask of 002, so that another user in the same group can modify, move, or delete files created ...
5
votes
5answers
510 views

How to daemonize a shell task?

How can I run a console command (like cp or tar, for example) without needing to keep an open SSH?
3
votes
4answers
509 views

Recommendations for Monitoring services [closed]

I would like to install a monitoring services (Monit or others) on my web server and am looking for recommendation. I have no idea which is good, and what parameters which I should evaluate on, and ...
8
votes
4answers
24k views

console-kit-daemon - can it be stopped?

I have 60 instances of Console Kit daemon on Ubuntu 9.04 server installation. Is it safe to kill those or stop these processes. They seem to be taking about 20% of RAM each(see on htop).
7
votes
1answer
9k views

Init script does not create a PID file

I need to create an init script for an IRC logger. I copied /etc/init.d/skeleton. I filled in the configuration section to fit my needs and I also had to add --background to the start daemon command ...
0
votes
3answers
2k views

Updating start-stop-daemon on Debian

I have Debian Lenny box, where I plan to extensively use start-stop-daemon. The trouble is, the standard Debian start-stop-daemon doesn't support output redirection: --stdout and --stderr keys, which ...
0
votes
2answers
1k views

How much RAM and CPU do various IRC Daemons take up?

I'm looking to install an IRC Daemon, as well as services (if they are not included in the IRC daemon) onto a virtual server with a variable amount of memory allocation, and I was wondering about how ...
2
votes
2answers
2k views

How to set system environment variables for Linux services?

I need to setup environment variables for application servers. For example: ORACLE_HOME, ORACLE_SID, JAVA_OPTS, CATALINA_BASE. I know how to set system environment variables in Windows, but no ideas ...
1
vote
1answer
485 views

Automatic printing of files written in specific directory

I have a legacy application that for printing purposes, sends its output to a file in different directories. What's written into directory X is printed in printer X; what's written into directory Y is ...