Displaying 20 results from an estimated 2000 matches similar to: "Unicorn / Daemontools"
2011 May 19
2
Unicorn preload_app and upstart
?Hi,
I was wondering if anyone has managed to get the preload_app and SIGUSR2
combination working well with upstart?
My issue currently is that when I perform a SIGUSR2 against the master,
check everything''s working and close off the old master, upstart then
attempts to restart it because the original PID/binary are no longer
running.
What is the correct way of handling this? In my
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following:
- xyz = someFuncThatReturnsString(''xyz'')
and elsewhere
%div{''id'' => xyz}
The above lines work fine.
- - -
Attempting to keep things DRY (Don''t repeat yourself) I want to do
something like
- eval(otherFuncThatReturnsString(''xyz''))
where
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there,
I posted this issue
<https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at
the carrierwave-group, but I''m beginning to think this rather is a
rails-issue than a problem with carrierwave. The problem''s this:
I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my
article_controller i
2011 Aug 03
2
Question about HUP + USR2 + QUIT
Currently, on deploys we''re sending HUP to the "old" master to reload
the config, and then we send it a USR2 to reload the app code. Is this
redundant -- i.e. does USR2 reload the unicorn config, or just the
application code? I am under the impression that USR2 forks a new
master from the old, and only reloads app code, and not the unicorn
config, but I just wanted to double
2012 Dec 07
3
Ubuntu upstart
I cannot find any good example of a unicorn upstart task that works
properly for the following:
* Upstart will restart if unicorn dies
* Can send USR2 signal to unicorn to do a no downtime deploys
* Able to stop upstart job, even after a deploy
I have tried the following:
expect fork
respawn
setuid www-data
chdir /var/www/app/current
exec bundle exec unicorn_rails -E production -c
2009 Nov 04
7
About Unicorn Rack handler
Hi,
A couple days ago, I was trying to run Unicorn for Ramaze,
and found that `Unicorn.run'' didn''t share the same interface
with other Rack handlers, i.e. `options[:Host]'' and `options[:Port]''
Because of this, I can''t just use:
Rack::Handler.register(''unicorn'', ''Unicorn'')
And invoke this:
2010 Sep 09
4
Unicorn fails to restart gracefully on capistrano deploy
First off thanks very much for all the hard work on unicorn. Alas, we''ve encountered an issue where unicorn fails to spawn new workers that have loaded the incoming revision on a capistrano deploy. I''m not entirely sure the issue is due to unicorn as it appears that bundler was responsible for a similar issue in the past:
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
Hey guys,
I''m sending USR2 to unicorn after cap deploy, and the old master is
getting replaced by a new master that doesn''t work.
Here are some similar threads I found ...
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000733.html
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000717.html
I''m not using Bundler, and I have working_directory
2012 Jan 31
12
FreeBSD jail and unicorn
Hello,
I''m using unicorn since a while, but now I try to run it the first time
inside a FreeBSD jail.
The initial start of unicorn works fine and it serves all the requests.
But if I want to restart it using the USR2 signal, it (more or less)
slowly starts using more and more CPU cycles. There is no error message in
the logs and it quite hard to reproduce that error. In 1 of 20 tries,
2010 Oct 25
1
advice on using daemontools on centos production servers
Hi advisors ,
I would some suggestions on using http://cr.yp.to/daemontools.html .
My requirements is to use less systems daemon checks in nagios but concentrate more on business / application level checks .
We have lots of daemons like below
> 1. ) snmpd
> 2.) ntp
> 3.) SSH
> 4.) crond
> 5.) php-cgi
> 6.) nginx
> 7.) Postfix
> 8.) wackamole
> 9.) spread
>
2007 May 02
1
Daemontools and holidays macro
Hi
I've recently released the daemontools scripts I use to run both
Asterisk and Flash Operator Panel, and a macro to tell whether today is
a holiday or not and jump to different dialplan places accordingly. They
are here:
daemontools scripts:
http://www.bisente.com/blog/2007/04/27/spanish-asterisk-y-daemontools-spanishenglish-asterisk-and-daemontools-english/?lan=english
is-holiday macro:
2006 Aug 03
2
daemontools
Hi,
I just started running RC2 on Thursday. I migrated an old Courier IMAP
server, and the only issue I had was that I didn't understand how to
enable quotas :)
It's impressively fast, and I'm quite happy with it so far.
This morning I found that dovecot had crashed, I had exceeded FreeBSD's
kern.maxpipekva
Has anyone successfully run dovecot under daemontools? I got it to
2006 Jul 06
3
Daemontools and icecast / ices2
Hi all,
I'm trying to use daemontools to manage the icecast server.
I've got it installed and working (with qmail)
However it wont work with icecast.
My run file has the contents:
-------------------------------
#!/bin/sh
exec setuidgid icecast /usr/local/bin/icecast -c /usr/local/etc/icecast.xml
------------------------
I have also tried it using icecasts built in
2006 Jul 06
3
Daemontools and icecast / ices2
Hi all,
I'm trying to use daemontools to manage the icecast server.
I've got it installed and working (with qmail)
However it wont work with icecast.
My run file has the contents:
-------------------------------
#!/bin/sh
exec setuidgid icecast /usr/local/bin/icecast -c /usr/local/etc/icecast.xml
------------------------
I have also tried it using icecasts built in
2003 Jun 17
2
starting with daemontools
Hi all,
I want to start dovecot through DJBs Daemontools-supervise, is there a
configuration option that lets dovecot stay in foreground?
best regards,
Jens
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
Signaling using normal kill(2) is preserved, but the master now
prefers to signal workers using a pipe rather than kill(2).
Non-graceful signals (:TERM/:KILL) are still sent using kill(2),
as they ask for immediate shutdown.
This change is necessary to avoid triggering the ubf (unblocking
function) for rb_thread_call_without_gvl (and similar) functions
extensions. Most notably, this fixes
2013 Jul 26
2
dovecot-lda not logging if dovecot runs under daemontools
Hello all,
I have dovecot running under daemontools and I can't see dovecot-lda in
action when I read the logs. I've set the logs to /dev/stderr because
daemontools redirects /dev/stderr to /var/log/dovecot/current.
The dovecot server works fine and I know that dovecot-lda is actually
doing the delivery, because the sieve facility is working as well. I can
get lda log working -but
2006 Aug 10
2
Dovecot under daemontools
Hi there
I'm having difficulties in getting dovecot to run under daemontools. Also,
from a sysadmin perspective, so far, I find dovecot's config rather complex
- I suppose that's what happens when one attempts to appease all
authentication methods... anyway, I digress.
System details, to set the scene:
OS: Slackware Linux
Linux Kernel: 2.4.29
GCC: 3.2.2
Dovecot version: 1.0.rc6
2011 Oct 08
5
How to automate the restarting of Unicorn?
Hi,
I have a question about automating the restarting of Unicorn with the
following steps, and much appreciate your help.
Assumption: (i) "pid" is set to unicorn.pid in the config file; (ii) a
Unicorn process is already running.
(1) kill -USR2 `cat unicorn.pid` (via Capistrano deployment task for example)
(2) Inside the "before_exec" hook in the config file, do: kill -QUIT
2010 Nov 24
0
Puppet & Daemontools
Hi there,
I''ve been playing with puppet for a couple of weeks (So, I''m still quite a
newbie at it) and there is something I just can''t seem to be able to fix.
I''m trying to have puppet manage daemontools service. Following the
documentation <http://docs.puppetlabs.com/guides/types/service.html>, I
added this in my puppet configuration:
class