inadyn.initd 544 B

12345678910111213141516171819202122232425
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2020 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need net
  6. use logger dns
  7. after bootmisc
  8. }
  9. start() {
  10. ebegin "Starting inadyn"
  11. start-stop-daemon --start --chuid inadyn --exec /usr/sbin/inadyn \
  12. --pidfile /var/run/inadyn.pid --make-pidfile --background \
  13. -- --syslog --input_file /etc/inadyn.conf
  14. eend $?
  15. }
  16. stop() {
  17. ebegin "Stopping inadyn"
  18. start-stop-daemon --stop --exec /usr/sbin/inadyn \
  19. --pidfile /var/run/inadyn.pid
  20. eend $?
  21. }