/[sysadmin-cookbook]/recepies/lxc/lxc-watchdog.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Log of /recepies/lxc/lxc-watchdog.sh

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 301 - (view) (annotate) - [select for diffs]
Modified Tue Apr 9 19:49:31 2013 UTC (7 years, 6 months ago) by dpavlin
File length: 6266 byte(s)
Diff to previous 284
use system configured cgroup mount point

Revision 284 - (view) (annotate) - [select for diffs]
Modified Tue Dec 13 12:54:24 2011 UTC (8 years, 10 months ago) by dpavlin
File length: 6170 byte(s)
Diff to previous 272
fix lxc-ps usage with -C arg for lxc 0.7.5

Reported by Gordon Henderson <gordon(at)drogon.net>


Revision 272 - (view) (annotate) - [select for diffs]
Modified Fri Sep 9 18:27:11 2011 UTC (9 years, 1 month ago) by dpavlin
File length: 6073 byte(s)
Diff to previous 271
fallback for lxc-info 0.7.2

Revision 271 - (view) (annotate) - [select for diffs]
Modified Fri Sep 9 18:21:14 2011 UTC (9 years, 1 month ago) by dpavlin
File length: 5980 byte(s)
Diff to previous 264
use new lxc-info 0.7.5 output for status

Revision 264 - (view) (annotate) - [select for diffs]
Modified Sun Jun 26 15:00:40 2011 UTC (9 years, 3 months ago) by root
File length: 5962 byte(s)
Diff to previous 245
recent Debian has /var/run as symlink


Revision 245 - (view) (annotate) - [select for diffs]
Modified Tue Mar 29 18:02:44 2011 UTC (9 years, 6 months ago) by dpavlin
File length: 5854 byte(s)
Diff to previous 244
correct sulogin counting

Revision 244 - (view) (annotate) - [select for diffs]
Modified Tue Mar 29 18:00:40 2011 UTC (9 years, 6 months ago) by dpavlin
File length: 5857 byte(s)
Diff to previous 243
remote device rw on start

Revision 243 - (view) (annotate) - [select for diffs]
Modified Thu Mar 24 16:40:46 2011 UTC (9 years, 7 months ago) by dpavlin
File length: 5812 byte(s)
Diff to previous 237
remount rootfs before start to fix debian upgrades

Revision 237 - (view) (annotate) - [select for diffs]
Modified Wed Jan 26 18:56:17 2011 UTC (9 years, 8 months ago) by dpavlin
File length: 5739 byte(s)
Diff to previous 236
remote checkfs.sh from squeeze

Revision 236 - (view) (annotate) - [select for diffs]
Modified Wed Jan 26 12:16:23 2011 UTC (9 years, 8 months ago) by dpavlin
File length: 5707 byte(s)
Diff to previous 235
fix console condition, restart now works

Revision 235 - (view) (annotate) - [select for diffs]
Modified Tue Jan 25 14:40:42 2011 UTC (9 years, 8 months ago) by dpavlin
File length: 5530 byte(s)
Diff to previous 234
use only first ip address

Revision 234 - (view) (annotate) - [select for diffs]
Modified Sat Jan 22 16:07:46 2011 UTC (9 years, 9 months ago) by dpavlin
File length: 5487 byte(s)
Diff to previous 233
remote checkroot.sh used by squeeze

Revision 233 - (view) (annotate) - [select for diffs]
Modified Sun Oct 24 12:23:20 2010 UTC (10 years ago) by dpavlin
File length: 5453 byte(s)
Diff to previous 232
cleanup ip address and insert it into /etc/hosts inside container


Revision 232 - (view) (annotate) - [select for diffs]
Modified Sun Oct 24 11:55:02 2010 UTC (10 years ago) by dpavlin
File length: 5336 byte(s)
Diff to previous 229
extract lxc_hostname and lxc_ip into functions

Revision 229 - (view) (annotate) - [select for diffs]
Modified Sat Sep 11 12:19:12 2010 UTC (10 years, 1 month ago) by dpavlin
File length: 5217 byte(s)
Diff to previous 228
fix ip address display

Revision 228 - (view) (annotate) - [select for diffs]
Modified Sat Sep 11 11:51:37 2010 UTC (10 years, 1 month ago) by dpavlin
File length: 5218 byte(s)
Diff to previous 227
extract ip from config file

Revision 227 - (view) (annotate) - [select for diffs]
Modified Tue Sep 7 16:02:12 2010 UTC (10 years, 1 month ago) by dpavlin
File length: 5131 byte(s)
Diff to previous 226
don't try to start containers without rootfs mounted


Revision 226 - (view) (annotate) - [select for diffs]
Modified Tue Aug 10 17:03:15 2010 UTC (10 years, 2 months ago) by dpavlin
File length: 4998 byte(s)
Diff to previous 218
overwrite /etc/hostname from name of lxc

This allows us to make clones with different name right after boot


Revision 218 - (view) (annotate) - [select for diffs]
Modified Mon Jun 14 12:13:14 2010 UTC (10 years, 4 months ago) by root
File length: 4965 byte(s)
Diff to previous 216
remove udev startup from container


Revision 216 - (view) (annotate) - [select for diffs]
Modified Wed May 26 10:19:05 2010 UTC (10 years, 4 months ago) by dpavlin
File length: 4936 byte(s)
Diff to previous 196
show ip and hostname in status


Revision 196 - (view) (annotate) - [select for diffs]
Modified Wed Mar 24 19:06:42 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4786 byte(s)
Diff to previous 195
use column to display nice tabular output from status


Revision 195 - (view) (annotate) - [select for diffs]
Modified Wed Mar 24 19:03:16 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4773 byte(s)
Diff to previous 194
lxc-ls displays random files in /var/lib/lxc/ and duplicates so don't use it


Revision 194 - (view) (annotate) - [select for diffs]
Modified Mon Mar 22 21:48:27 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4735 byte(s)
Diff to previous 193
extract correct lxc.rootfs


Revision 193 - (view) (annotate) - [select for diffs]
Modified Fri Mar 19 14:11:49 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4726 byte(s)
Diff to previous 190
ensure that we have getty on tty1

Revision 190 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 23:14:38 2010 UTC (10 years, 7 months ago) by root
File length: 4628 byte(s)
Diff to previous 189
better usage, install as init script docs


Revision 189 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 23:05:31 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4411 byte(s)
Diff to previous 188
better output

Revision 188 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 22:00:20 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4246 byte(s)
Diff to previous 187
added boot and disable

Revision 187 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 21:36:45 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4152 byte(s)
Diff to previous 186
timestap watchdog output


Revision 186 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 20:53:59 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4117 byte(s)
Diff to previous 185
give container 5 seconds to start more than one process

Revision 185 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 20:51:46 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4048 byte(s)
Diff to previous 184
create on_boot only if it doesn't exist

Revision 184 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 20:42:38 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 4008 byte(s)
Diff to previous 183
added proper LSB init.d headers


Revision 183 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 19:59:41 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 3671 byte(s)
Diff to previous 182
real host reboot, status now include rootfs and on_boot


Revision 182 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 17:46:32 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 2897 byte(s)
Diff to previous 181
move inotify so watchdog can stop lxc in init state 0


Revision 181 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 17:39:28 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 2896 byte(s)
Diff to previous 180
rewrite into init-like script with start/stop/status name


Revision 180 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 16:18:40 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 1946 byte(s)
Diff to previous 179
use lxc-ps to find container's init

Revision 179 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 15:33:30 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 1919 byte(s)
Diff to previous 178
add powerfail to container's /etc/inittab which halt on kill -SIGPWR


Revision 178 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 15:06:30 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 1482 byte(s)
Diff to previous 177
cleanup init scripts which are not needed inside containers


Revision 177 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 14:52:56 2010 UTC (10 years, 7 months ago) by dpavlin
File length: 1236 byte(s)
Diff to previous 175
make container name first argument


Revision 175 - (view) (annotate) - [select for diffs]
Added Mon Mar 15 23:08:31 2010 UTC (10 years, 7 months ago) by root
File length: 1159 byte(s)
Start container and stop/start on reboot/halt


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.26