gluon-radvd 407 B

123456789101112131415161718
  1. #!/bin/sh /etc/rc.common
  2. START=50
  3. SERVICE_USE_PID=1
  4. SERVICE_NAME=gluon-radvd
  5. SERVICE_PID_DIR=/var/run/gluon-radvd
  6. SERVICE_PID_FILE="$SERVICE_PID_DIR"/gluon-radvd.pid
  7. start() {
  8. mkdir -p "$SERVICE_PID_DIR"
  9. chown gluon-radvd "$SERVICE_PID_DIR"
  10. service_start /usr/sbin/radvd -C /lib/gluon/radvd/radvd.conf -m stderr_syslog -u gluon-radvd -p "$SERVICE_PID_FILE"
  11. }
  12. stop() {
  13. service_stop /usr/sbin/radvd
  14. }