pyaim-t-0.8-initd-r1 606 B

123456789101112131415161718192021222324
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2013 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need net
  6. use jabber-server
  7. }
  8. start() {
  9. ebegin "Starting AIM Jabber Transport"
  10. checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/
  11. start-stop-daemon --start --pidfile /var/run/jabber/pyaim-t.pid -u jabber -g jabber \
  12. --exec INSPATH/pyaim-t.py -- \
  13. -b -c /etc/jabber/pyaim-t.xml -l /var/log/jabber/pyaim-t.log
  14. eend $?
  15. }
  16. stop() {
  17. ebegin "Stopping AIM Jabber Transport"
  18. start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyaim-t.pid
  19. eend $?
  20. }