Граф коммитов

53 Коммитов

Автор SHA1 Сообщение Дата
Matthew Shafer abeb09cf4f Add servers directory to debian package 2014-09-17 10:04:39 -07:00
Sergey Shepelev 78bca7bf65 statsd.upstart: exec to remove parent shell from process list
Changes ps output from:

1234 _statsd sh
1235 _statsd \_ statsd /etc/statsd/localConfig.js

to just one second line without intermediate shell process waiting for node.
2014-06-08 15:04:23 +04:00
Dave Ertel 083cfba815 Fix NODE_BIN from pre-start script not in scope for exec 2014-05-16 18:34:57 +10:00
Daniel Schauenberg f95dd0360f Merge pull request #406 from HerrBerg/logdirmissing
create log directory on startup as statsd does not start without it
2014-04-14 12:32:50 -04:00
Cameron Norman 9084247bca Update statsd.upstart 2014-04-11 16:04:42 -07:00
Cameron Norman 2c4fab4e92 Update statsd.upstart
Guard against package not being installed, fix chdir misplacement.
2014-04-11 08:32:10 -07:00
Patrick Scharrenberg 845c129a9f create log directory on startup as statsd does not start without it 2014-03-21 11:43:04 +01:00
pbehrisch 0edaabe18c Fix status
This init script wasn't working with puppet, but after I changed this line it's working fine. It looks like if it returned the wrong status code, so puppet was always assuming it's runnning even when it's stopped.
2013-12-18 14:38:08 +08:00
Ben Heilman cbad06f388 Standardized debian log locations 2013-12-06 17:18:19 -06:00
Ben Heilman dbc8148d6e Send STDOUT and STDERR to the appropriate files 2013-11-23 19:07:56 -06:00
Daniel Schauenberg cb7119ea2d Merge branch 'master' of https://github.com/codepainters/statsd
Conflicts:
	debian/postinst
2013-10-01 12:08:57 -04:00
Ruslan Gustomyasov 424fec35b4 postinst script fixed 2013-09-27 19:27:41 +04:00
Przemyslaw Wegrzyn 5e2c400002 Let upstart script handle both /usr/bin/node and .../nodejs 2013-09-17 13:27:24 +02:00
Przemyslaw Wegrzyn 60b15ac7b8 On Ubuntu it's /usr/bin/node, not .../nodejs 2013-09-17 00:13:22 +02:00
Przemyslaw Wegrzyn 2e4427679c Debian's postinst - add user/group before starting 2013-09-17 00:10:33 +02:00
Ori Livneh d79c4b9b67 Improvements to upstart job definition file
- Don't start at startup, since network interfaces may not be ready.
  Instead start when the first non-loopback network interface is up.
- Use Upstart's setgid / setuid directives to run as _statsd user.
- Omit implicit 'stop on shutdown'.
- Add a conventional & friendly comment header.
- Respawn StatsD on abnormal termination, but give up after 10 tries.
- Do not redirect StatsD's output to /var/log/statsd/statsd.log. Instead
  simply allow Upstart to capture output and save it to
  /var/log/upstart/statsd.log.
2013-09-06 23:48:42 -07:00
Daniel MacDougall 329b330a5b Fix path in upstart init script 2013-08-28 18:02:17 -07:00
Frederic Jaeckel 49ac7ca59a new debian version aligned with upstream 0.6.0-1 2013-08-20 14:50:19 +02:00
Frederic Jaeckel a7e955bf1b remove ${misc:Depends}, it's unnecessary
- this only got added because of a lintian error/warning which isn't thrown
  anymore (4584ba61d9)
2013-08-20 14:45:27 +02:00
Frederic Jaeckel 64388f4c8d bash syntax fix in init script 2013-08-20 14:44:19 +02:00
Frederic Jaeckel 6b319dfa79 install the initscript via update-rc.d
debian/postinst tries to remove it, so we need to install it first
fixing lintian rule 'script-in-etc-init.d-not-registered-via-update-rc.d'
2013-08-20 14:35:31 +02:00
Frederic Jaeckel e5a32593b7 create /var/run/statsd on initscript runtime
creating the /var/run/statsd directory during the debian package installation
violates the lintian rule 'dir-or-file-in-var-run'. /var/run might be a tmpfs
and thus volatile.
2013-08-20 14:33:45 +02:00
Frederic Jaeckel c0c7be8951 depending on adduser when using it in postinst 2013-08-20 14:07:41 +02:00
Frederic Jaeckel de5b5e8f0e lintian: fix init.d-script-missing-dependency-on-remote_fs 2013-08-20 13:59:42 +02:00
Frederic Jaeckel 3ab47cf375 lintian complained about spelling 2013-08-20 13:53:50 +02:00
Kiall Mac Innes 4d9bed141e Update debian packaging for 0.0.6 2013-06-27 19:38:26 +01:00
Marc Fournier f3720a49da debian: bump package release number 2013-05-14 21:24:10 +02:00
Marc Fournier 35adfdd62b debian: include docs and examples in package 2013-05-14 21:22:36 +02:00
Marc Fournier 297b9074d2 debian: avoid running service as root/nobody
Create a new _statsd system user on package installation (and remove him
when package is purged), and modify upstrart and init-script to have
this user run the daemon.
2013-05-14 21:13:06 +02:00
Drew Fradette fe61c955a6 Added status to debian init.d script 2012-12-24 09:14:41 -05:00
Anton Lebedevich 2ef655a284 install lib files, set current dir for daemon to allow require('./lib/...') 2012-10-30 10:37:23 +04:00
Vadim Antonov ec563319da Modify debian/statsd.install after config.js file was moved to lib folder. 2012-10-20 13:36:44 -07:00
Daniel, Dao Quang Minh eb6c466067 add lib to list of files that need to be installed 2012-08-01 00:04:20 +08:00
Frederic Junod f46fd799da debian/statsd.init: fix the start-stop-daemon --test line.
give the same arguments as the real start-stop-daemon line (startas
instead of exec), otherwise the daemon is not properly detected as started.
2012-07-18 09:16:46 +02:00
Frederic Junod f0fc80693e debian: install all backends into /usr/share/statsd/backends 2012-07-10 12:45:28 +02:00
Frederic Junod 9f437f8fca debian: bump compat to 8 and Standards-Version to 3.9.3 2012-07-10 12:22:10 +02:00
Frederic Junod f637e6fe10 debian: install README.md 2012-07-10 12:21:55 +02:00
Daniel Schauenberg 8c3babc94f Merge pull request #116 from fredj/lsb-init-script
LSB compliant init script
2012-07-09 12:33:00 -07:00
Frederic Junod 69aef78dd8 LSB compliant init script 2012-07-09 14:43:19 +02:00
Frederic Junod 4584ba61d9 Depends on misc:Depends 2012-07-09 14:04:48 +02:00
Frederic Junod a5e5c0220d Add missing debhelper to Build-Depends 2012-07-09 12:16:37 +02:00
Ken Robertson ce5d42e78b ensure the debian packages include the graphite backend file 2012-05-10 17:20:03 -07:00
Stephen Koenig d59d01d4f8 removed references to rdio configs (updated rdioConfig.js to localConfig.js)
improved $NODE_BIN searching
2012-04-26 18:27:57 -07:00
Suan-Aik Yeo de3ccdf20f add an init.d script 2012-04-07 01:29:46 -05:00
Erik Kastner 82f64c1810 updating debian package 2012-02-12 14:49:35 -05:00
Bruno Clermont b1bd94d2d7 bump debian package version 2012-02-12 14:41:49 -05:00
Bruno Clermont f82efdb450 autodetect node.js binary ubuntu and/or debian change the path to nodejs from /usr/bin/nodejs to /usr/bin/node between maverick and natty 2012-02-12 14:41:49 -05:00
Bruno Clermont 15d147ba30 Move log output to /var/log/statsd logging in /tmp is not a good idea, it's dangerous and not persitent in many cases (/tmp mount in tmpfs or wiped at host startup). 2012-02-12 14:41:49 -05:00
Bruno Clermont cc1ba1fb43 Switch to a more revelant user. user nobody is always present on debian/ubuntu distro. while fabric user... less likely. 2012-02-12 14:41:49 -05:00
Bruno Clermont 81e37027e9 dgram was added in node 0.2. statsd package can be installed on Ubuntu Maverick, which come with nodejs 0.1.97. but execution fail 2012-02-12 14:41:49 -05:00