logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

innd-r1 (498B)


  1. #!/sbin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need net
  6. }
  7. start() {
  8. ebegin "Starting ${SVCNAME}"
  9. checkpath -d -m 0755 -o news:news /run/news
  10. start-stop-daemon --start --user news --pidfile /run/news/${SVCNAME}.pid \
  11. --exec /usr/lib/news/bin/rc.news
  12. eend $?
  13. }
  14. stop() {
  15. ebegin "Stopping ${SVCNAME}"
  16. start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news -- stop
  17. sleep 2
  18. eend $?
  19. }