| 1 | #
|
|---|
| 2 | # Linux systemd service file for EPICS Archiver Appliance
|
|---|
| 3 | #
|
|---|
| 4 | # To install this file, as root:
|
|---|
| 5 | # cp archappl.service /etc/systemd/system
|
|---|
| 6 | # chmod 664 /etc/systemd/system/archappl.service
|
|---|
| 7 | # systemctl daemon-reload
|
|---|
| 8 | # systemctl enable archappl
|
|---|
| 9 | # systemctl start archappl
|
|---|
| 10 | #
|
|---|
| 11 | # To check the status:
|
|---|
| 12 | # systemctl status archappl
|
|---|
| 13 |
|
|---|
| 14 | [Unit]
|
|---|
| 15 | Description=EPICS Archiver Appliance
|
|---|
| 16 | After=multi-user.target
|
|---|
| 17 |
|
|---|
| 18 | [Install]
|
|---|
| 19 | WantedBy=multi-user.target
|
|---|
| 20 |
|
|---|
| 21 | [Service]
|
|---|
| 22 | Type=forking
|
|---|
| 23 | #Type=oneshot
|
|---|
| 24 | User=epics
|
|---|
| 25 | Group=epics
|
|---|
| 26 | ExecStart=/opt/archappl/sampleStartup.sh start
|
|---|
| 27 | ExecStop=/opt/archappl/sampleStartup.sh stop
|
|---|
| 28 | Restart=no
|
|---|
| 29 | #TimeoutSec=0
|
|---|
| 30 | RemainAfterExit=yes
|
|---|