mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 22:56:34 +00:00
DEBIAN: fix problems in install scripts
git-svn-id: https://svn.fhem.de/fhem/trunk@15784 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
186dd42294
commit
17019575f6
@ -19,7 +19,7 @@ sed -i /debian.fhem.de/d /etc/apt/sources.list
|
|||||||
# upstart: not supported
|
# upstart: not supported
|
||||||
|
|
||||||
# detect init system
|
# detect init system
|
||||||
test=$(stat /sbin/init |grep "File")
|
test=$(stat /sbin/init |grep "/sbin/init")
|
||||||
re="systemd$"
|
re="systemd$"
|
||||||
|
|
||||||
if [[ $test =~ $re ]];
|
if [[ $test =~ $re ]];
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# detect init system
|
# detect init system
|
||||||
test=$(stat /sbin/init |grep "File")
|
test=$(stat /sbin/init |grep "/sbin/init")
|
||||||
re="systemd$"
|
re="systemd$"
|
||||||
|
|
||||||
if [[ $test =~ $re ]]; then
|
if [[ $test =~ $re ]]; then
|
||||||
|
@ -13,8 +13,11 @@ WorkingDirectory=/opt/fhem
|
|||||||
ExecStart=/usr/bin/perl fhem.pl fhem.cfg
|
ExecStart=/usr/bin/perl fhem.pl fhem.cfg
|
||||||
#ExecStart=/usr/bin/perl fhem.pl configDB
|
#ExecStart=/usr/bin/perl fhem.pl configDB
|
||||||
# uncomment next two lines if auto-restart desired
|
# uncomment next two lines if auto-restart desired
|
||||||
#Restart=always
|
|
||||||
#RestartSec=5
|
# please select restart options according your needs
|
||||||
|
# Restart=on-abnormal # uncomment for crash and watchdog event recovery only (keeps shutdown working)
|
||||||
|
# Restart=always # alternativly uncomment this line for recover always
|
||||||
|
# RestartSec=5 # uncomment always if restart required!
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user