hyperion.ng/bin/service/hyperion.systemd.sh
penfold42 908612adf8 init scripts need to send SIGTERM not SIGHUP
* Removed -HUP so the default -TERM signal is sent instead.
- hyperiond only listens for TERM and INT. HUP is often used to get an exe to reread its config

Changed pgrep to add '-x' so it wont partial match on the exe name.
- I have multiple instances with multiple hyperiond-instance1 names
- this ensures the service script only kills the right process

* reversing errant change to hyperion.systemd.sh


Former-commit-id: 7df14c9ab31bd808df7f286a8db89de3ac7d18bd
2016-04-02 15:05:46 +02:00

16 lines
273 B
Bash

[Unit]
Description=Hyperion Systemd service
[Service]
Type=simple
User=root
Group=root
UMask=007
ExecStart=/opt/hyperion/bin/hyperiond /etc/hyperion.config.json
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target