1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh /etc/rc.common START=15 SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 SERVICE_PID_FILE=/var/run/6distributed.pid DISTRIBUTED_BIN=/usr/sbin/6distributed start() { service_start $DISTRIBUTED_BIN } stop() { service_stop $DISTRIBUTED_BIN }