overte/tools/ci-scripts/linux-package-release/hifi-domain-server
2019-07-12 14:03:09 -07:00

13 lines
No EOL
529 B
Text

[Unit]
Description=Domain Server service for High Fidelity
After=network.target
[Service]
Restart=on-failure
WorkingDirectory=/usr/share/hifi/domain-server
Environment="LD_LIBRARY_PATH=/usr/share/hifi/domain-server/"
ExecStartPre=/bin/bash -c 'if /usr/bin/pgrep -l domain-server; then /usr/bin/pkill -SIGKILL -f /usr/share/hifi/domain-server/domain-server; fi'
ExecStart=/bin/bash -c 'ulimit -c unlimited; /usr/share/hifi/domain-server/domain-server 2>&1 >> /var/log/hifi/domain-server.log'
[Install]
WantedBy=multi-user.target