#!/sbin/openrc-run

depend() {
  need mysql
}

start() {
  ebegin "Starting gammu-smsd"
  start-stop-daemon --start --exec "/usr/bin/gammu-smsd" --make-pidfile --background --pidfile /run/gammu-smsd.pid
  eend $?
}

stop() {
  ebegin "Stopping gammu-smsd"
  start-stop-daemon --stop --exec "/usr/bin/gammu-smsd" --pidfile /run/gammu-smsd.pid
  eend $?
}
