File: olpc-switchd.upstart

package info (click to toggle)
olpc-powerd 23-3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,016 kB
  • sloc: sh: 4,456; ansic: 887; makefile: 72
file content (17 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
description     "XO hw switch handler"
author          "Paul Fox"

start on stopping rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

console output

# poll for power events every 10 seconds,
# report periodic timer at least every 60
exec /usr/sbin/olpc-switchd -f -l -p 10 -t 6 -F /var/run/powerevents

respawn