Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 139b31c0c1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (13 sloc) 0.387 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
description "kanyun monitor service"
author "yaguang <yaguang@staff.sina.com.cn>"

start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [016]

respawn

chdir /var/run

pre-start script
mkdir -p /var/run/kanyun
chown kanyun:root /var/run/kanyun/

mkdir -p /var/lock/kanyun
chown kanyun:root /var/lock/kanyun/

end script

exec su -s /bin/sh -c "exec kanyun-worker" root
Something went wrong with that request. Please try again.