From: Chris Sharp Date: Fri, 29 Mar 2019 16:51:30 +0000 (-0400) Subject: adding opensrf.service file X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=08e9a079c79f233bf0db0c1e7aaf69e40ad540b3;p=contrib%2Fpines%2Fosrf-debian.git adding opensrf.service file --- diff --git a/files_for_build/opensrf.service b/files_for_build/opensrf.service new file mode 100644 index 0000000..b3d1d64 --- /dev/null +++ b/files_for_build/opensrf.service @@ -0,0 +1,24 @@ +[Unit] +Description=Open Service Request Framework +After=ejabberd.service memcached.service +Before=apache2.service apache2-ws.service +#Requries=memcached.service +BindsTo=ejabberd.service + +[Service] +User=opensrf +Group=opensrf +Type=oneshot +RemainAfterExit=yes +Environment=PATH=/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +ExecStartPre=/bin/sleep 5 +ExecStart=/openils/bin/osrf_control --start-all +#ExecStartPost=/bin/sleep 5 +#ExecStartPost=/usr/bin/sudo /bin/systemctl -q restart apache2.service +#ExecStartPost=/usr/bin/sudo /bin/systemctl -q restart apache2-ws.service +ExecStop=/openils/bin/osrf_control --stop-all + +[Install] +WantedBy=multi-user.target +Alias=opensrf.service +