forked from bmoffit/coda_scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatform.service
43 lines (38 loc) · 960 Bytes
/
platform.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
############################################################
#
# platform.service
#
# - Systemd Unit file for the CODA 3.x platform service
#
# Usage:
#
# 1. In [Service] below, replace the "Environment", "User",
# and "ExecStart" to match your CODA environment
#
# 2. Enable (as root):
# systemctl enable $PWD/platform.service
#
# 3. Start (as root):
# systemctl start platform
#
# Restart with (either):
# - As root
# systemctl restart platform
#
# - As "User"
# killall coda_platform.sh
#
[Unit]
Description=CODA3 Platform
After=network.target ypbind.service sssd.service network-online.target remote-fs.target autofs.service
Wants=network-online.target autofs.service
Requires=autofs.service
[Service]
Type=simple
Restart=always
RestartSec=5
User=idaq
ExecStart=/opt/idaq/coda/coda_scripts/coda_platform.sh
ExecStop=/bin/pkill -f -TERM coda_platform.sh
[Install]
WantedBy=multi-user.target