SpamapS
  • Member for 11 years
  • Last seen more than 5 years ago
3 answers
10 votes
19k views
What are the ramifications of setting tcp_tw_recycle/reuse to 1?
4 votes

From 'man 7 tcp' You will see this: tcp_tw_recycle (Boolean; default: disabled; since Linux 2.4) Enable fast recycling of TIME_WAIT sockets. Enabling this option is not recommended ...

View answer
3 answers
3 votes
4k views
Ssh and other services over openvpn are slow
4 votes

nix, make sure you are using UDP mode in OpenVPN. TCP will have to do fragment reassembly for one, and that will just get worse the lower quality the link is.

View answer
3 answers
5 votes
5k views
Using Upstart to manage Unicorn w/ rbenv + bundler binstubs w/ ruby-local-exec shebang
Accepted answer
3 votes

Indeed, a limitation of upstart is that it cannot track daemons that do what unicorn is doing.. that being fork/exec and exit their main process. Believe it or not, sshd does the same thing on SIGHUP, ...

View answer
1 answers
0 votes
237 views
Linux Upstart processes automatically restart
2 votes

started is a generic event emitted by any job that has been started on the system. So if there are any udev events or other things causing any upstart jobs to start, then your job will be started ...

View answer
1 answers
2 votes
792 views
How can I ensure a script gets executed after a service is stopped but before another service is stopped?
Accepted answer
1 votes

Its important to remember that upstart is an event driven system, not a dependency based system. So using "and" can be dangerous. You're asking upstart to wait until all of these events happen to ...

View answer
1 answers
2 votes
224 views
Upstart, no feedback whether starting failed
Accepted answer
1 votes

You need a post-start stanza which will query the service as to whether or not it is providing whatever service it is expected to be running. So something like post-start script for try in 1 2 3 4 ...

View answer
1 answers
3 votes
1k views
Ubuntu Server - Power failure leads to boot failure
1 votes

Ali, you didn't mention what your journaling is set to. The default mount mode of ext3 and ext4 is 'data=ordered'. This means that while metadata operations may be safe, data may be lost on power ...

View answer
1 answers
2 votes
3k views
node-waf nodejs failing
1 votes

According to this page http://nodejs.org/docs/v0.2.5/api.html#addons-313 "node-waf is just http://code.google.com/p/waf/[WAF], the python-based build system. node-waf is provided for the ease of ...

View answer
2 answers
2 votes
2k views
Using Gentoo's `ebegin`, `eend` etc under Ubuntu
0 votes

With sysvinit jobs, you can probably just copy those functions from gentoo into a package which you install into your machines and then source in the same way. However, this won't solve the issue for ...

View answer
3 answers
3 votes
8k views
memcached not restarting properly start-stop-daemon: warning: failed to kill 8175: No such process
0 votes

This was actually reported as a bug here: https://bugs.launchpad.net/ubuntu/+source/memcached/+bug/795673 I just fixed it in the dev release of Ubuntu (currently precise). The fix is pretty tiny and ...

View answer
1 answers
0 votes
2k views
Upstart output pre-start script content
Accepted answer
0 votes

There's no easy answer here. Unfortunately, if you pipe the output of the syntax check to something like logger, you lose the return code to check if it failed.. so you have to do it something like ...

View answer
1 answers
1 votes
621 views
Building mysql-5.5.19 from source on ubuntu 11.10 with the static flag
0 votes

c++: error: _ALL_STATIC=1: No such file or directory Thats the error right there, and its being caused by your --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static Perhaps you meant -...

View answer
1 answers
1 votes
758 views
How do I perform an action if the upstart respawn limit is hit?
0 votes

upstart will log the respawn limit failure via syslog. Its a good idea to have cron jobs or a realtime log monitor that inform you of problems like this. Its also a good idea to have monitoring of the ...

View answer
1 answers
2 votes
3k views
Ubuntu Upstart job - "stop" is not recognized command
Accepted answer
0 votes

So first off, upstart runs all jobs as root, so you don't need sudo, get rid of that. Second, it would appear that your monitored program is exitting, hence the 'unknown instance' error. You should ...

View answer
2 answers
1 votes
559 views
Ubuntu server with Apache supporting php4,5 and 6
0 votes

Last I checked, mod_php4 and mod_php5 didn't play nice together in the same apache, but maybe the hosting provider has figured that out. If so, then they likely have patched them to register as ...

View answer
4 answers
1 votes
6k views
skip fsck on boot on ubuntu 10.04 server
0 votes

First off, did you try pressing C while in TTY7 or TTY1? Also did you try M for manual fsck? I believe those are hotkeys for the boot splash processor, plymouth, and not for mountall itself, and are ...

View answer
3 answers
2 votes
505 views
Ubuntu Packages (PHP)
0 votes

Aaron, the model by which a distro's packages update isn't exactly compatible with the typical web shop's fast advance forward. Because the distribution seeks to integrate things to a point of ...

View answer
7 answers
0 votes
8k views
How to clear linux logs?
0 votes

Top 25 directories and/or files: du -m / | sort -rn | head -25

View answer