-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopensrf.service
More file actions
21 lines (18 loc) · 823 Bytes
/
opensrf.service
File metadata and controls
21 lines (18 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Open Service Request Framework
After=ejabberd.service memcached.service
Before=clark-kent.service oils-sip.service oils-z3950.service apache2.service websocketd.service nginx.service
Wants=clark-kent.service oils-sip.service oils-z3950.service apache2.service websocketd.service nginx.service
[Service]
User=opensrf
Group=opensrf
Type=oneshot
RemainAfterExit=yes
# to use the fqdn in the config file, put Environment=LOCALHOST= in /etc/systemd/system/opensrf.service.d/override.conf
Environment=LOCALHOST="-l"
Environment="PATH=/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ExecStart=/openils/bin/osrf_control --start-all $LOCALHOST
ExecStop=/openils/bin/osrf_control --stop-all $LOCALHOST
[Install]
Alias=evergreen.service
WantedBy=multi-user.target