mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
auto generation of initial config file (#271)
* - remove feature of using multiple config files for automaticly start other hyperion instances - add auto config file creation - tune service files * add auto path creation for initial default config * debian package: rename service to hyperiond remove copy of config file
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
[Unit]
|
||||
Description=Hyperion ambient light systemd service for OpenELEC/LibreELEC/RasPlex
|
||||
After=graphical.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c "exec sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion/hyperion.config.json"
|
||||
TimeoutStopSec=2
|
||||
WorkingDirectory=/storage/hyperion/bin/
|
||||
Environment=LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
|
||||
ExecStart=./hyperiond /storage/.config/hyperion/hyperion.config.json
|
||||
TimeoutStopSec=5
|
||||
KillMode=mixed
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
|
@@ -1,15 +1,13 @@
|
||||
[Unit]
|
||||
Description=Hyperion ambient light systemd service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=hyperion
|
||||
Group=hyperion
|
||||
ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=2
|
||||
TimeoutStopSec=5
|
||||
KillMode=mixed
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user