ptlink-opm.init.d 428 B

12345678910111213141516171819202122
  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. use dns ircd
  7. }
  8. start() {
  9. ebegin "Starting ptlink-opm"
  10. start-stop-daemon --start --quiet --exec /usr/bin/ptlink-opm \
  11. --chuid ${PTLINKOPM_USER} >/dev/null
  12. eend $?
  13. }
  14. stop() {
  15. ebegin "Shutting down ptlink-opm"
  16. start-stop-daemon --stop --exec /usr/bin/ptlink-opm
  17. eend $?
  18. }