mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 16:46:35 +00:00
DEBIAN/postinst: upstart removed (Forum #27277)
git-svn-id: https://svn.fhem.de/fhem/trunk@6594 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5c6e2a0487
commit
01ab2263c5
@ -1,3 +1,4 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
@ -8,17 +9,11 @@ fi
|
||||
|
||||
chown -R fhem /opt/fhem
|
||||
|
||||
#set up of autostart
|
||||
if test -x /sbin/initctl; then
|
||||
# upstart
|
||||
mkdir -p /etc/init
|
||||
cp /opt/fhem/contrib/init-scripts/fhem.upstart /etc/init/fhem.conf
|
||||
initctl start fhem
|
||||
else
|
||||
# Sysvinit
|
||||
mkdir -p /etc/init.d
|
||||
cp /opt/fhem/contrib/init-scripts/fhem.3 /etc/init.d/fhem
|
||||
chmod ugo+x /etc/init.d/fhem
|
||||
update-rc.d fhem defaults
|
||||
invoke-rc.d fhem start
|
||||
fi
|
||||
# set up of autostart
|
||||
# Sysvinit; upstart no longer supported
|
||||
|
||||
mkdir -p /etc/init.d
|
||||
cp /opt/fhem/contrib/init-scripts/fhem.3 /etc/init.d/fhem
|
||||
chmod ugo+x /etc/init.d/fhem
|
||||
update-rc.d fhem defaults
|
||||
invoke-rc.d fhem start
|
||||
|
Loading…
x
Reference in New Issue
Block a user