File: caspermond

package info (click to toggle)
casper 1.77%2Bdebian-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 364 kB
  • ctags: 145
  • sloc: sh: 1,835; ansic: 467; makefile: 76; python: 43
file content (9 lines) | stat: -rw-r--r-- 195 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh

STATEFILE=/var/run/caspermond/status.casper-snapshot

while true; do
    dmsetup status /dev/mapper/casper-snapshot > $STATEFILE.new
    mv $STATEFILE.new $STATEFILE
    sleep 60
done