Advertisement
chrissharp123

Untitled

Aug 24th, 2023
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. /lib/systemd/system/opensrf.service
  2. [Unit]
  3. Description=Open Service Request Framework
  4. After=ejabberd.service memcached.service
  5. Before=apache2.service apache2-ws.service
  6. #Requries=memcached.service
  7. BindsTo=ejabberd.service
  8.  
  9. [Service]
  10. User=opensrf
  11. Group=opensrf
  12. Type=oneshot
  13. RemainAfterExit=yes
  14. Environment=PATH=/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  15. ExecStartPre=/bin/sleep 5
  16. ExecStart=/openils/bin/osrf_control --localhost --start-all
  17. #ExecStartPost=/bin/sleep 5
  18. #ExecStartPost=/usr/bin/sudo /bin/systemctl -q restart apache2.service
  19. #ExecStartPost=/usr/bin/sudo /bin/systemctl -q restart apache2-ws.service
  20. ExecStop=/openils/bin/osrf_control --localhost --stop-all
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
  24. Alias=opensrf.service
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement